From 2c255468fbe49504fc4e62cd43cf5ef42a8ec9b8 Mon Sep 17 00:00:00 2001 From: Patrick McGuire Date: Fri, 8 Oct 2021 14:54:08 -0400 Subject: [PATCH] adding spectrogram_viewer service --- scripts/install_services.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/scripts/install_services.sh b/scripts/install_services.sh index 616c109..a6f43a5 100755 --- a/scripts/install_services.sh +++ b/scripts/install_services.sh @@ -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