A live bird collage card for your Home Assistant dashboard.
possible workaround for notorious bug
ehpersonal38b0676c821755
diff --git a/scripts/birdnet_analysis.sh b/scripts/birdnet_analysis.shindex edf8100c..4d55f994 100755--- a/scripts/birdnet_analysis.sh+++ b/scripts/birdnet_analysis.sh@@ -100,7 +100,13 @@ run_analysis() {echo "${1}/${i}" > $HOME/BirdNET-Pi/analyzing_now.txt[ -z ${RECORDING_LENGTH} ] && RECORDING_LENGTH=15echo "RECORDING_LENGTH set to ${RECORDING_LENGTH}"+ itr=0until [ -z "$(lsof -t ${1}/${i})" ];do+ itr=$((itr+1))+ if [ $itr -eq 30 ]; then+ echo "Maximum number of attempts exceeded. Exiting & restarting service."+ exit+ fisleep 2done