commit 38cac13eb5fb9a6006fe37061047bad1d5705e67
parent 4300ef27edc58876cde0b4a4344716dbfd5a1c1f
Author: Frederic Cambus <fred@statdns.com>
Date: Sun, 15 Jul 2018 19:54:21 +0200
Do not attempt to fetch UV data when in forecast mode
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ansiweather b/ansiweather
@@ -193,7 +193,7 @@ fi
###[ Fetch UV data ]###########################################################
-if [ "$show_uvi" = true ]
+if [ "$show_uvi" = true ] && [ "$forecast" = 0 ]
then
lat=$(echo "$weather" | jq -r '.coord.lat')
lon=$(echo "$weather" | jq -r '.coord.lon')