From 8705ff44034840fdac39bdf318ef1fcc9d804bc3 Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Sat, 8 Oct 2022 12:16:54 -0400 Subject: [PATCH] heartbeat stuff --- scripts/install_config.sh | 6 ++++++ scripts/update_birdnet_snippets.sh | 3 +++ 2 files changed, 9 insertions(+) diff --git a/scripts/install_config.sh b/scripts/install_config.sh index c71ec48..8c99f0c 100755 --- a/scripts/install_config.sh +++ b/scripts/install_config.sh @@ -187,6 +187,12 @@ AUDIOFMT=mp3 ## DATABASE_LANG is the language used for the bird species database DATABASE_LANG=en +## HEARTBEAT_URL is a location to ping every time some analysis is done +## no information is sent to the the URL, its a heart beat to show that the +## analysis is continuing + +HEARTBEAT_URL= + ## SILENCE_UPDATE_INDICATOR is for quieting the display of how many commits ## your installation is behind by, relative to the Github repo. This number ## appears next to "Tools" when you're 50 or more commits behind. diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.sh index b7612eb..729f264 100755 --- a/scripts/update_birdnet_snippets.sh +++ b/scripts/update_birdnet_snippets.sh @@ -135,6 +135,9 @@ fi if ! grep FREQSHIFT_PITCH /etc/birdnet/birdnet.conf &>/dev/null;then sudo -u$USER echo "FREQSHIFT_PITCH=-1500" >> /etc/birdnet/birdnet.conf fi +if ! grep HEARTBEAT_URL /etc/birdnet/birdnet.conf &>/dev/null;then + sudo -u$USER echo "HEARTBEAT_URL=" >> /etc/birdnet/birdnet.conf +fi sudo systemctl daemon-reload restart_services.sh