Notification conf and cron setups

This commit is contained in:
ehpersonal38
2022-06-28 13:04:59 -04:00
parent 828d9d8757
commit 5896f00a55
6 changed files with 18 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
source /etc/birdnet/birdnet.conf
echo ${APPRISE_WEEKLY_REPORT}
NOTIFICATION=$(curl 'localhost/views.php?view=Weekly%20Report&ascii=true')
NOTIFICATION=${NOTIFICATION#*#}
firstLine=`echo "${NOTIFICATION}" | head -1`
NOTIFICATION=`echo "${NOTIFICATION}" | tail -n +2`
$HOME/BirdNET-Pi/birdnet/bin/apprise -vv -t "${firstLine}" -b "${NOTIFICATION}" --config=$HOME/BirdNET-Pi/apprise.txt