cmfcmf/OpenWeatherMap-PHP-API

An error occurs if Wind->deg does not exist

cookie-maker opened this issue · 3 comments

An error occurs if Wind->deg does not exist.
Sometimes you can not get it depending on the city.

[For example]
method : OpenWeatherMap->getWeatherGroup
The city id : 2113126(Akita,Japan)
Wind Object has only 'speed'.

[Error Message]
Undefined property: stdClass::$deg
OpenWeatherMap/CurrentWeather.php
Line Number: 122

Hey @cookie-maker,
thanks for the detailed report including examples!
A fix is on it's way! 🍪

@cookie-maker this should be fixed as of version 2.2.1.

@cmfcmf Thank you!