A live bird collage card for your Home Assistant dashboard.
birdnet_analysis doesn't restart the socket on config change
mcguirepr8967b0796a818c
diff --git a/scripts/birdnet_analysis.sh b/scripts/birdnet_analysis.shindex e62571d6..063ac1d2 100755--- a/scripts/birdnet_analysis.sh+++ b/scripts/birdnet_analysis.sh@@ -22,9 +22,23 @@ if ! diff ${LAST_RUN} ${THIS_RUN};thenecho "The birdnet.conf file has changed"echo "Reloading services"cat ${THIS_RUN} > ${LAST_RUN}- until restart_services.sh;do- sleep 1+ sudo systemctl stop birdnet_recording.service+ sudo rm -rf ${RECS_DIR}/$(date +%B-%Y/%d-%A)/*+ services=(web_terminal.service+ spectrogram_viewer.service+ pushed_notifications.service+ livestream.service+ icecast2.service+ extraction.timer+ extraction.service+ chart_viewer.service+ birdnet_recording.service+ birdnet_log.service)++ for i in "${services[@]}";do+ sudo systemctl restart "${i}"done+fiINCLUDE_LIST="/home/pi/BirdNET-Pi/include_species_list.txt"