Skip to content

Commit

Permalink
Bug: 13299 Adjust to changes in Wunderground API.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael J Rubinsky <mrubinsk@horde.org>
  • Loading branch information
arjen+horde (at) de-korte (dot) org authored and mrubinsk committed Jun 30, 2014
1 parent d224040 commit 25478cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -69,12 +69,12 @@ public function __get($property)
if ($this->_weather->units == Horde_Service_Weather::UNITS_STANDARD) {
return $this->_properties['wind_mph'];
}
return round($this->_properties['wind_mph'] * Horde_Service_Weather::CONVERSION_MPH_TO_KPH);
return $this->_properties['wind_kph'];
case 'wind_gust':
if ($this->_weather->units == Horde_Service_Weather::UNITS_STANDARD) {
return $this->_properties['wind_gust_mph'];
}
return round($this->_properties['wind_gust_mph'] * Horde_Service_Weather::CONVERSION_MPH_TO_KPH);
return $this->_properties['wind_gust_kph'];

case 'dewpoint':
if ($this->_weather->units == Horde_Service_Weather::UNITS_STANDARD) {
Expand Down
Expand Up @@ -35,7 +35,7 @@ class Horde_Service_Weather_Period_WeatherUnderground extends Horde_Service_Weat
'icon_url' => 'icon_url',
'precipitation_percent' => 'pop',
'period' => 'period',
'humidity' => 'maxhumidity',
'humidity' => 'avehumidity',
);

/**
Expand Down

0 comments on commit 25478cc

Please sign in to comment.