diff --git a/mythplugins/mythweather/mythweather/scripts/ca_envcan/ENVCANParser.pm b/mythplugins/mythweather/mythweather/scripts/ca_envcan/ENVCANParser.pm
index 0d0e3d6..c87c0b3 100644
|
a
|
b
|
sub doParse {
|
| 93 | 93 | $results{'weather_icon'} = getIcon($1); |
| 94 | 94 | } |
| 95 | 95 | $results{'temp'} = sprintf("%.0f", $1) |
| 96 | | if ($item->{description} =~ /Temperature:\<\/b\>\s*(-?\d*\.?\d*)\260\C\s*\<br\/\>/s); |
| | 96 | if ($item->{description} =~ /Temperature:\<\/b\>\s*(-?\d*\.?\d*)\°\;\C\s*\<br\/\>/s); |
| 97 | 97 | $results{'pressure'} = sprintf("%d", $1 * 10) |
| 98 | 98 | if ($item->{description} =~ /Pressure \/ Tendency:\<\/b\>\s*(\d*\.?\d*) kPa\s*.*\<br\/\>/s); |
| 99 | 99 | $results{'visibility'} = sprintf("%.1f", $1) |
| … |
… |
sub doParse {
|
| 105 | 105 | $results{'windchill'} = $1; |
| 106 | 106 | } |
| 107 | 107 | $results{'dewpoint'} = sprintf("%.0f", $1) |
| 108 | | if ($item->{description} =~ /Dewpoint:\<\/b\>\s*(-?\d*\.?\d*)\260\C\s*\<br\/\>/s); |
| | 108 | if ($item->{description} =~ /Dewpoint:\<\/b\>\s*(-?\d*\.?\d*)\°\;\C\s*\<br\/\>/s); |
| 109 | 109 | if ($item->{description} =~ /(\d*\:\d*[\w ]*\d*[\w *]\d*)\s*\<br\/\>/s) { |
| 110 | 110 | $results{'observation_time'} = "Last updated at ". $1; |
| 111 | 111 | $results{'updatetime'} = "Last updated at ". $1; |