This commit is contained in:
ehpersonal38
2022-05-07 13:00:44 -04:00
parent 7d6f55d2ee
commit 18bfdccab0
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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);
}
+1 -2
View File
@@ -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