From da7c824d3a834728d7649933d4c0ecd21ae457f6 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Thu, 29 Aug 2013 20:47:54 -0400 Subject: [PATCH] This is better, but still isn't right, especially when there are different numbers of lines in the 18 hour forecast output. I need a better way of calculating these offset. --- conky-mythtv-weather-build.plx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conky-mythtv-weather-build.plx b/conky-mythtv-weather-build.plx index a379218..f2e4a59 100755 --- a/conky-mythtv-weather-build.plx +++ b/conky-mythtv-weather-build.plx @@ -148,7 +148,7 @@ print "\n\${goto 82}Humidity: $humidity\% Wind: $windSpeed kph"; print " ($windGust kph)" if defined $windGust; print "\n"; ($xpos, $vpos) = ($FONT_SIZE * (5 + $data{forecast}{maxLength}), - $VOFFSET_IMAGE + 80); + $VOFFSET_IMAGE + 78); foreach my $ii (qw/0 1 2 3 4 5/) { next if not defined $data{forecast}{"time-${ii}"}; @@ -162,7 +162,7 @@ foreach my $ii (qw/0 1 2 3 4 5/) { $vpos += $FONT_SIZE + 7; } ($xpos, $vpos) = ($FONT_SIZE * 26, - $VOFFSET_IMAGE + 174); + $VOFFSET_IMAGE + 173); foreach my $ii (qw/0 1 2 3 4 5/) { # You can also use "%doneDays" here, as in: # next if defined $doneDays{$data{extended}{"date-${ii}"}};