We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 468a991 commit ea06037Copy full SHA for ea06037
Cmfcmf/OpenWeatherMap/Forecast.php
@@ -67,7 +67,7 @@ public function __construct(\SimpleXMLElement $xml, $units)
67
$windSpeedUnit = 'mps';
68
}
69
70
- $this->wind = new Wind(new Unit($xml->windSpeed['mps'], $windSpeedUnit, $xml->windSpeed['name']), new Unit($xml->windDirection['value'], $xml->windDirection['code'], $xml->windDirection['name']));
+ $this->wind = new Wind(new Unit($xml->windSpeed['mps'], $windSpeedUnit, $xml->windSpeed['name']), new Unit($xml->windDirection['deg'], $xml->windDirection['code'], $xml->windDirection['name']));
71
$this->clouds = new Unit($xml->clouds['all'], $xml->clouds['unit'], $xml->clouds['value']);
72
$this->precipitation = new Unit($xml->precipitation['value'], null, $xml->precipitation['type']);
73
$this->sun = new Sun(new \DateTime($xml->city->sun['rise']), new \DateTime($xml->city->sun['set']));
0 commit comments