Skip to content

A live bird collage card for your Home Assistant dashboard.

Update species_notifier.sh

ehpersonal38d0e345051b49
diff --git a/scripts/species_notifier.sh b/scripts/species_notifier.sh
index eed26ff0..aa7d5d8f 100755
--- a/scripts/species_notifier.sh
+++ b/scripts/species_notifier.sh
@@ -20,7 +20,7 @@ if ! diff ${IDFILE} ${lastcheck} &> /dev/null;then
echo "Sending the following notification:
${NOTIFICATION}"
- if [ ! -s $HOME/BirdNET-Pi/apprise.txt ];then
+ if [ -s $HOME/BirdNET-Pi/apprise.txt ];then
$HOME/BirdNET-Pi/birdnet/bin/apprise -vv -t 'New Species Detected' -b "${NOTIFICATION}" --config=$HOME/BirdNET-Pi/apprise.txt
fi
fi