adding spectrogram_viewer service

This commit is contained in:
Patrick McGuire
2021-10-08 14:54:08 -04:00
parent 6fb9a50e0f
commit 2c255468fb
+16
View File
@@ -265,6 +265,22 @@ EOF
systemctl enable --now avahi-alias@birdstats.local.service
}
install_spectrogram_service() {
cat << EOF > /etc/systemd/system/spectrogram_viewer.service
[Unit]
Description=BirdNET BirdSound Extraction
[Service]
Restart=always
RestartSec=10
Type=simple
User=pi
ExecStart=/usr/local/bin/extract_new_birdsounds.sh
[Install]
WantedBy=multi-user.target
EOF
systemctl enable --now spectrogram_viewer.service
}
install_gotty_logs() {
echo "Installing GoTTY logging"
if ! which gotty &> /dev/null;then