Update birdnet_analysis.sh

This commit is contained in:
Patrick McGuire
2022-01-22 17:48:58 -05:00
committed by GitHub
parent 5e919ff4c3
commit 48b734c9c2
+2 -2
View File
@@ -9,8 +9,8 @@ my_dir=$(realpath $(dirname $0))
if [ -z ${THIS_RUN} ];then THIS_RUN=/home/pi/BirdNET-Pi/thisrun.txt;fi
[ -f ${THIS_RUN} ] || touch ${THIS_RUN} && chmod g+w ${THIS_RUN}
if [ -z ${LAST_RUN} ];then LAST_RUN=/home/pi/BirdNET-Pi/lastrun.txt;fi
[ -z ${LATITUDE} ] && echo "LATITUDE not set, exiting 1"; exit 1
[ -z ${LONGITUDE} ] && echo "LONGITUDE not set, exiting 1"; exit 1
[ -z ${LATITUDE} ] && echo "LATITUDE not set, exiting 1" && exit 1
[ -z ${LONGITUDE} ] && echo "LONGITUDE not set, exiting 1" && exit 1
make_thisrun() {
sleep .4
awk '!/#/ && !/^$/ {print}' /etc/birdnet/birdnet.conf \