Skip to content

A live bird collage card for your Home Assistant dashboard.

fix for clearing all data

Patrick McGuire860ced15e6dc
diff --git a/scripts/species_notifier.sh b/scripts/species_notifier.sh
index 5a2bec56..9cb76e7c 100755
--- a/scripts/species_notifier.sh
+++ b/scripts/species_notifier.sh
@@ -6,6 +6,8 @@ source /etc/birdnet/birdnet.conf
lastcheck="$(mktemp)"
+[ -f ${IDFILE} ] || touch ${IDFILE}
+
cp ${IDFILE} ${lastcheck}
/home/pi/BirdNET-Pi/scripts/new_update_species.sh