A live bird collage card for your Home Assistant dashboard.
fixed default time
Patrick McGuirebe4e387193ad
diff --git a/scripts/birdnet_analysis.sh b/scripts/birdnet_analysis.shindex ef1fc487..2f4e3e24 100755--- a/scripts/birdnet_analysis.sh+++ b/scripts/birdnet_analysis.sh@@ -47,7 +47,7 @@ run_analysis() {FILE_LENGTH="$(ffmpeg -i ${1}/${i} 2>&1 \| awk -F. '/Duration/ {print $1}' \| cut -d':' -f3-4)"- [ -z ${RECORDING_LENGTH} ] && RECORDING_LENGTH=9+ [ -z ${RECORDING_LENGTH} ] && RECORDING_LENGTH=12[ ${RECORDING_LENGTH} == "60" ] && RECORDING_LENGTH=01:00[ "${FILE_LENGTH}" == "00:${RECORDING_LENGTH}" ] || continuediff --git a/scripts/birdnet_recording.sh b/scripts/birdnet_recording.shindex 8a2c3a3c..45f6d811 100755--- a/scripts/birdnet_recording.sh+++ b/scripts/birdnet_recording.sh@@ -8,7 +8,7 @@ elseSTAMP="%H:%M:%S"fi-[ -z RECORDING_LENGTH ] || RECORDING_LENGTH=9+[ -z RECORDING_LENGTH ] || RECORDING_LENGTH=12if pgrep arecord &> /dev/null ;thenecho "Recording"