From 1fdf2805744856d55455d70d9c6f1119030dd756 Mon Sep 17 00:00:00 2001 From: Patrick McGuire Date: Mon, 1 Nov 2021 18:23:27 -0400 Subject: [PATCH] has default LAT and LON now --- scripts/birdnet_analysis.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/birdnet_analysis.sh b/scripts/birdnet_analysis.sh index a7aedd8..f00b5f2 100755 --- a/scripts/birdnet_analysis.sh +++ b/scripts/birdnet_analysis.sh @@ -8,6 +8,8 @@ source /etc/birdnet/birdnet.conf my_dir=$(realpath $(dirname $0)) if [ -z ${THIS_RUN} ];then THIS_RUN=/home/pi/BirdNET-Pi/thisrun.txt;fi if [ -z ${LAST_RUN} ];then LAST_RUN=/home/pi/BirdNET-Pi/thisrun.txt;fi +if [ -z ${LATITUDE} ];then LATITUDE=-1;fi +if [ -z ${LONGITUDE} ];then LONGITUDE=-1;fi make_thisrun() { sleep .4 awk '!/#/ && !/^$/ {print}' /etc/birdnet/birdnet.conf \