Skip to content

A live bird collage card for your Home Assistant dashboard.

testy

ehpersonal3818bfdccab032
diff --git a/scripts/config.php b/scripts/config.php
index 45d7fe00..5c32469d 100644
--- a/scripts/config.php
+++ b/scripts/config.php
@@ -31,7 +31,7 @@ fwrite($fh, $contents);
fwrite($fh2, $contents2);
if(strlen($apprise_input) > 0){
- $appriseconfig = fopen("~/.apprise", "w");
+ $appriseconfig = fopen("".exec("~/").".apprise", "w");
fwrite($appriseconfig, $apprise_input);
}
diff --git a/scripts/species_notifier.sh b/scripts/species_notifier.sh
index 95b67200..21f66405 100755
--- a/scripts/species_notifier.sh
+++ b/scripts/species_notifier.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
# Sends a notification if a new species is detected
-#set -x
trap 'rm -f $lastcheck' EXIT
source /etc/birdnet/birdnet.conf
@@ -35,7 +34,7 @@ ${NOTIFICATION}"
fi
if [ ! -s ~/.apprise ];then
- apprise -vv -t 'New Species Detected' -b ${NOTIFICATION}
+ $HOME/BirdNET-Pi/birdnet/bin/apprise -vv -t 'New Species Detected' -b ${NOTIFICATION}
fi
fi