From 902515c2245943ef3078b620549ca2450cc65fe4 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Tue, 27 Aug 2013 07:18:55 -0400 Subject: [PATCH] Use icon from forecast for today if no current conditions icon was provided. --- conky-mythtv-weather-build.plx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conky-mythtv-weather-build.plx b/conky-mythtv-weather-build.plx index 3c1873c..2581546 100755 --- a/conky-mythtv-weather-build.plx +++ b/conky-mythtv-weather-build.plx @@ -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;