Skip to content

A live bird collage card for your Home Assistant dashboard.

adding defaults to this

Patrick McGuiree90318d3a3d8
diff --git a/scripts/birdnet_analysis.sh b/scripts/birdnet_analysis.sh
index d8f32c56..a7aedd8d 100755
--- a/scripts/birdnet_analysis.sh
+++ b/scripts/birdnet_analysis.sh
@@ -6,6 +6,8 @@ source /etc/birdnet/birdnet.conf
# Make a temporary file to compare the current birdnet.conf with
# the birdnet.conf as it was the last time this script was called
my_dir=$(realpath $(dirname $0))
+if [ -z ${THIS_RUN} ];then THIS_RUN=/home/pi/BirdNET-Pi/thisrun.txt;fi
+if [ -z ${LAST_RUN} ];then LAST_RUN=/home/pi/BirdNET-Pi/thisrun.txt;fi
make_thisrun() {
sleep .4
awk '!/#/ && !/^$/ {print}' /etc/birdnet/birdnet.conf \