Skip to content

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.sh
index 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}" ] || continue
diff --git a/scripts/birdnet_recording.sh b/scripts/birdnet_recording.sh
index 8a2c3a3c..45f6d811 100755
--- a/scripts/birdnet_recording.sh
+++ b/scripts/birdnet_recording.sh
@@ -8,7 +8,7 @@ else
STAMP="%H:%M:%S"
fi
-[ -z RECORDING_LENGTH ] || RECORDING_LENGTH=9
+[ -z RECORDING_LENGTH ] || RECORDING_LENGTH=12
if pgrep arecord &> /dev/null ;then
echo "Recording"