summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-10-08 22:58:51 -0400
committerJesse Luehrs <doy@tozt.net>2019-10-08 22:58:51 -0400
commitd93a6c0155d7d626db4736bb8facc7f6ac2a4280 (patch)
treecff205a6982f5ccd16e3e104670fe5a37c48ca83
parentf95d889952624338db4eb2d8628942afe9dcc5e3 (diff)
downloadconf-d93a6c0155d7d626db4736bb8facc7f6ac2a4280.tar.gz
conf-d93a6c0155d7d626db4736bb8facc7f6ac2a4280.zip
fix weather icons for places with less weather information
-rwxr-xr-xbin/hush/weather2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hush/weather b/bin/hush/weather
index 6d762d7..90816d2 100755
--- a/bin/hush/weather
+++ b/bin/hush/weather
@@ -46,7 +46,7 @@ my $precip = int($data->{hourly}{data}[0]{precipProbability} * 100);
say join(' ',
"$precip%",
- $weather_pics{$data->{minutely}{icon}} // "?",
+ $weather_pics{$data->{minutely}{icon} // $data->{hourly}{data}[0]{icon}} // "?",
"${temp}${temp_unit}",
(($feelslike_temp != $temp)
? ("(\x{2245}${feelslike_temp}${temp_unit})")