Skip to content

A live bird collage card for your Home Assistant dashboard.

adding spectrogram_viewer service

Patrick McGuire2c255468fbe4
diff --git a/scripts/install_services.sh b/scripts/install_services.sh
index 616c109a..a6f43a58 100755
--- a/scripts/install_services.sh
+++ b/scripts/install_services.sh
@@ -265,6 +265,22 @@ EOF
systemctl enable --now [email protected]
}
+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