A live bird collage card for your Home Assistant dashboard.
Update birdnet_analysis.sh
mcguirepr8993586405a83f
diff --git a/scripts/birdnet_analysis.sh b/scripts/birdnet_analysis.shindex 178d9d46..8c0e3bc8 100755--- a/scripts/birdnet_analysis.sh+++ b/scripts/birdnet_analysis.sh@@ -78,7 +78,7 @@ run_analysis() {cd ${HOME}/Birding-Pi || exit 1for i in "${files[@]}";doecho "${1}/${i}" > ./analyzing_now.txt- [ -z ${RECORDING_LENGTH} ] && RECORDING_LENGTH=12+ [ -z ${RECORDING_LENGTH} ] && RECORDING_LENGTH=15[ ${RECORDING_LENGTH} == "60" ] && RECORDING_LENGTH=01:00FILE_LENGTH="$(ffmpeg -i ${1}/${i} 2>&1 | awk -F. '/Duration/ {print $1}' | cut -d':' -f3-4)"[ -z $FILE_LENGTH ] && sleep 3 && continue