Skip to content

A live bird collage card for your Home Assistant dashboard.

I dont' know how I messed up the first versions so badly, but this one is working

mcguirepr897c687e5eb26f
diff --git a/scripts/birdnet_recording.sh b/scripts/birdnet_recording.sh
index e2ea4802..1f1cd8d8 100755
--- a/scripts/birdnet_recording.sh
+++ b/scripts/birdnet_recording.sh
@@ -18,11 +18,11 @@ else
done
if [ -z ${REC_CARD} ];then
arecord -f S16_LE -c${CHANNELS} -r48000 -t wav --max-file-time ${RECORDING_LENGTH}\
- --use-strftime ${RECS_DIR}/%B-%Y/%d-%A/%F-birdnet-$(date "+%F").wav
+ --use-strftime ${RECS_DIR}/%B-%Y/%d-%A/%F-birdnet-%H:%M:%S.wav
else
arecord -f S16_LE -c${CHANNELS} -r48000 -t wav --max-file-time ${RECORDING_LENGTH}\
-D "${REC_CARD}" --use-strftime \
- ${RECS_DIR}/%B-%Y/%d-%A/%F-birdnet-$(date "+%F").wav
+ ${RECS_DIR}/%B-%Y/%d-%A/%F-birdnet-%H:%M:%S.wav
fi
fi
fi