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.
This commit is contained in:
Bradley M. Kuhn 2013-08-29 20:47:54 -04:00
parent f0dcebf649
commit da7c824d3a

View file

@ -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}"}};