From 559050c6160b52c593376b84e5e3a62fd1f8c5e8 Mon Sep 17 00:00:00 2001 From: va7eex Date: Mon, 20 Feb 2017 21:47:37 -0800 Subject: [PATCH] Added some code to make sure errors don't happen. --- render.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render.sh b/render.sh index 0ad7aa8..5e519b9 100644 --- a/render.sh +++ b/render.sh @@ -29,10 +29,10 @@ echo "${dyear}/${dmonth}/${dday} ${dhour}:${dminute} /" $unixtimestamp #-gRSCFH are for turning on/off the overlays such as long/lat, cities, lakes, borders, etc. #-H selects the TLE file #-o is when the satellite is overhead forward one minute from the filename just to ensure that the predictor wxmap uses agrees with the pypredict predictor -wxmap -T "NOAA 15" -T "NOAA 18" -T "NOAA 19" -n "Vancouver,Canada" -g 0 -R 0 -S 1 -C 1 -F 0 -H ~/satellites/weather.txt -o $(($unixtimestamp+60)) /tmp/passmap.png +wxmap -T "NOAA 15" -T "NOAA 18" -T "NOAA 19" -n "Vancouver,Canada" -c l:0xff000 -g 0 -R 0 -S 1 -C 1 -F 0 -H ~/satellites/weather.txt -o $(($unixtimestamp+60)) /tmp/passmap.png #If pass is at night time render differently for daytime. -if [[ $dhour -le 8 ]] || [[ $dhour -ge 17 ]] +if [[ ${dhour#0} -le 8 ]] || [[ ${dhour#0} -ge 17 ]] #the funny code is to ensure things are translated into base 10. then echo "Pass is at night" for r in "${render_options_night[@]}"