A live bird collage card for your Home Assistant dashboard.
update config
frederik2ce355a2aefe
diff --git a/scripts/install_config.sh b/scripts/install_config.shindex 6e3a1bd3..3c4a334f 100755--- a/scripts/install_config.sh+++ b/scripts/install_config.sh@@ -100,7 +100,6 @@ RTSP_STREAM_TO_LIVESTREAM="0"#----------------------- Apprise Miscellanous Configuration -------------------#APPRISE_NOTIFICATION_TITLE="New BirdNET-Pi Detection"-APPRISE_NOTIFICATION_BODY="A \$comname (\$sciname) was just detected with a confidence of \$confidence (\$reason)"APPRISE_NOTIFY_EACH_DETECTION=0APPRISE_NOTIFY_NEW_SPECIES=0APPRISE_WEEKLY_REPORT=1@@ -299,3 +298,7 @@ chmod g+w ${birdnet_conf}[ -d /etc/birdnet ] || sudo mkdir /etc/birdnetsudo ln -sf $birdnet_conf /etc/birdnet/birdnet.confgrep -ve '^#' -e '^$' /etc/birdnet/birdnet.conf > $my_dir/firstrun.ini++source /etc/birdnet/birdnet.conf+echo 'A $comname ($sciname) was just detected with a confidence of $confidence ($reason)' | sudo -u $BIRDNET_USER tee "$HOME/BirdNET-Pi/body.txt"+chmod g+w "$HOME/BirdNET-Pi/body.txt"diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.shindex 67988f64..42cc8de6 100755--- a/scripts/update_birdnet_snippets.sh+++ b/scripts/update_birdnet_snippets.sh@@ -92,6 +92,12 @@ SRC='^APPRISE_NOTIFICATION_BODY="A \$comname \(\$sciname\) was just detected wiDST='APPRISE_NOTIFICATION_BODY="A \$comname (\$sciname) was just detected with a confidence of \$confidence (\$reason)"'sed -i --follow-symlinks -E "s/$SRC/$DST/" /etc/birdnet/birdnet.conf+if ! [ -f $HOME/BirdNET-Pi/body.txt ];then+ grep -E '^APPRISE_NOTIFICATION_BODY=".*"' birdnet.conf | cut -d '"' -f 2 | sudo_with_user tee "$HOME/BirdNET-Pi/body.txt"+ chmod g+w "$HOME/BirdNET-Pi/body.txt"+ sed -i --follow-symlinks -E 's/^APPRISE_NOTIFICATION_BODY=/#APPRISE_NOTIFICATION_BODY=/' /etc/birdnet/birdnet.conf+fi+if ! grep -E '^INFO_SITE=' /etc/birdnet/birdnet.conf &>/dev/null;thenecho "INFO_SITE=\"ALLABOUTBIRDS\"" >> /etc/birdnet/birdnet.conffi