Use icon from forecast for today if no current conditions icon was provided.

This commit is contained in:
Bradley M. Kuhn 2013-08-27 07:18:55 -04:00
parent 041a1ef97d
commit 902515c224

View file

@ -128,6 +128,9 @@ $feelsLike = $data{current}{windchill}
undef $feelsLike if $feelsLike =~ /^\s*N[\s\/]*A\s*$/i;
undef $windGust if defined $windGust and $windGust =~ /^\s*N[\s\/]*A\s*$/i;
$icon = $data{extended}{"icon-0"}
if ($icon =~ /unknown/i and $data{extended}{"date-0"} eq UnixDate($now, "%A"));
my($xpos, $vpos) = (350, $VOFFSET_IMAGE + 40);
my $smallFontSize = $FONT_SIZE - 5;
$smallFontSize = 7 if $smallFontSize < 7;