Skip to content

Releases: cmfcmf/OpenWeatherMap-PHP-API

Use HTTPS urls

30 Aug 07:40
37f2e11

Choose a tag to compare

Up until now, we were using HTTP urls for the API calls to OpenWeatherMap. Thanks to @Erulezz, we now use the more secure HTTPS versions.







Buy Me a Coffee at ko-fi.com
Your donations help me put more time into Open-Source software development.

Fix timezone related issues

16 Apr 18:19
a15fd88

Choose a tag to compare

This release corrects the use of timezones throughout the project. OpenWeatherMap returns dates in the UTC timezone. However, up until now, not all \DateTime instances returned by this API were using UTC as their timezone. This resulted in the problems described in #119, which were fixed in #120.
Thank you @Clpsplug for finding and reporting the issue as well as verifying the fix!

I really hope timezone handling is working as intended now. But timezone related code always seems prone to issues, so please open an issue if you encounter any problems with this release!


Buy Me a Coffee at ko-fi.com
If you like my work, I'd really appreciate you buying me a coffee. Your donations help me put more time into Open-Source software development.

Correct imperial windspeed unit in forecasts

21 Jan 12:26
045e765

Choose a tag to compare

The imperial wind speed unit for forecasts was incorrectly set to mps instead of mph (#113). Thank you @haydeniv for reporting!

Get current weather by zipcode

07 Aug 13:38
feca123

Choose a tag to compare

You can now retrieve the current weather using a zipcode (see here for official OWM documentation).

// Get current temperature from zip code (Hyderabad, India).
$weather = $owm->getWeather('zip:500001,IN', $units, $lang);
echo 'City: '.$weather->city->name;
echo 'Temperature: '.$weather->temperature;

Wind direction optional

21 Apr 15:51

Choose a tag to compare

The wind direction is now optional (#101).

UV Index API support

08 Feb 21:09

Choose a tag to compare

  • uv index api support
  • no more http for icon urls
  • tests

Multiple cities with query endpoint added

17 Oct 10:10

Choose a tag to compare

Timezone related issues fixed

17 Apr 14:22

Choose a tag to compare

v2.1.1

Fix multiple timezone related errors, closes #73. (#75)

Better API key support, fixed critical error in temperature calculation

12 Apr 17:37

Choose a tag to compare

  • added automated integration tests (thanks @aseriy!)
  • fixed rounding errors in average temperature calculation for forecasts
  • use PSR-4 instead of PSR-0 autoloading
  • re-arranged OpenWeatherMap constructor arguments while keeping backwards compatibility (you should now pass the api key as first constructor argument)

Fixed wind direction in forecasts

31 Jan 15:08

Choose a tag to compare

Also doesn't require-dev phpunit anymore.