From d93a6c0155d7d626db4736bb8facc7f6ac2a4280 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 8 Oct 2019 22:58:51 -0400 Subject: fix weather icons for places with less weather information --- bin/hush/weather | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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})") -- cgit v1.2.3-54-g00ecf