testy
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ fwrite($fh, $contents);
|
|||||||
fwrite($fh2, $contents2);
|
fwrite($fh2, $contents2);
|
||||||
|
|
||||||
if(strlen($apprise_input) > 0){
|
if(strlen($apprise_input) > 0){
|
||||||
$appriseconfig = fopen("~/.apprise", "w");
|
$appriseconfig = fopen("".exec("~/").".apprise", "w");
|
||||||
fwrite($appriseconfig, $apprise_input);
|
fwrite($appriseconfig, $apprise_input);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Sends a notification if a new species is detected
|
# Sends a notification if a new species is detected
|
||||||
#set -x
|
|
||||||
trap 'rm -f $lastcheck' EXIT
|
trap 'rm -f $lastcheck' EXIT
|
||||||
source /etc/birdnet/birdnet.conf
|
source /etc/birdnet/birdnet.conf
|
||||||
|
|
||||||
@@ -35,7 +34,7 @@ ${NOTIFICATION}"
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -s ~/.apprise ];then
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user