Skip to content

Releases: cmfcmf/OpenWeatherMap-PHP-API

Use HTTPS urls

Choose a tag to compare

@cmfcmf cmfcmf released this 30 Aug 07:40
37f2e11

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

Choose a tag to compare

@cmfcmf cmfcmf released this 16 Apr 18:19
a15fd88

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

Choose a tag to compare

@cmfcmf cmfcmf released this 21 Jan 12:26
045e765

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

Choose a tag to compare

@cmfcmf cmfcmf released this 07 Aug 13:38
feca123

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

Choose a tag to compare

@cmfcmf cmfcmf released this 21 Apr 15:51

The wind direction is now optional (#101).

UV Index API support

Choose a tag to compare

@cmfcmf cmfcmf released this 08 Feb 21:09
  • uv index api support
  • no more http for icon urls
  • tests

Multiple cities with query endpoint added

Choose a tag to compare

@cmfcmf cmfcmf released this 17 Oct 10:10

Timezone related issues fixed

Choose a tag to compare

@cmfcmf cmfcmf released this 17 Apr 14:22
v2.1.1

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

Better API key support, fixed critical error in temperature calculation

Choose a tag to compare

@cmfcmf cmfcmf released this 12 Apr 17:37
  • 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

Choose a tag to compare

@cmfcmf cmfcmf released this 31 Jan 15:08

Also doesn't require-dev phpunit anymore.