Ticket #4079: 4079_diff.patch
File 4079_diff.patch, 832 bytes (added by , 17 years ago) |
---|
-
mythplugins/mythweather/mythweather/scripts/ENVCANParser.pm
108 108 } 109 109 110 110 if ($inside{dd}) { 111 if ($scratch == 1) { $_[0] =~ /( \d*).*/; $results{'temp'} = $1; $results{'windchill'} = $1; $results{'appt'} = $1; }111 if ($scratch == 1) { $_[0] =~ /(-?\d*).*/; $results{'temp'} = $1; $results{'windchill'} = $1; $results{'appt'} = $1; } 112 112 if ($scratch == 2) { $_[0] =~ /(\d*\.\d+) kPa.*/; $results{'pressure'} = $1 * 10; } 113 113 if ($scratch == 3) { $_[0] =~ /(\d*) km/; $results{'visibility'} = $1; } 114 114 if ($scratch == 4) { $_[0] =~ /(\d*) \%/; $results{'relative_humidity'} = $1; }