CICCIOSGAMINO / openweather-apis

Simple APIs for OpenWeatherMap.org basic services
GNU General Public License v3.0
44 stars 27 forks source link

2.5 One Call API Deprecated #55

Open adam6806 opened 7 months ago

adam6806 commented 7 months ago

I'm having issues with utilizing this library. I do see it's using the 2.5 API and all I see on openweather is 3.0 for the onecall API. https://openweathermap.org/api

Specifically I'm getting 401. It's been days since I've created my keys and I have subscribed to the one call api and setup my payment info.

adam6806 commented 7 months ago

Looks like 2.5 is being sunset soon https://openweathermap.org/api/one-call-api

adam6806 commented 7 months ago

https://forums.homeseer.com/forum/hs4-products/hs4-plugins/weather-plug-ins-aa/akweather-alexbk66/1660724-openweather-api-key-problem

This link seems to say that for new accounts the 2.5 api has already been deprecated and won't work. That would mean I can't use this until it's using the 3.0 api.

I just checked and this URL did not work for 2.5 but did work if I replaced 2.5 with 3.0 (key removed for safety)

https://api.openweathermap.org/data/3.0/onecall?lat=33.44&lon=-94.04&exclude=hourly,daily&appid=

adam6806 commented 7 months ago

Looks like the only thing that has to happen is change all the 2.5 to 3.0. https://openweathermap.org/one-call-transfer#match

adam6806 commented 7 months ago

I did fork this project and create the change from 2.5 to 3.0 and confirmed for the same api key that 2.5 doesn't work and 3.0 does. https://github.com/adam6806/openweather-apis/tree/API-v3.0

https://github.com/CICCIOSGAMINO/openweather-apis/compare/master...adam6806:openweather-apis:API-v3.0

adam6806 commented 7 months ago

https://github.com/CICCIOSGAMINO/openweather-apis/pull/56 PR created

inspired-technologies commented 6 months ago

OpenWeather now confirmed plans to complete the migration from One Call 2.5 to One Call 3.0 that started 2 years ago. In line with this, access to One Call 2.5 will be finally closed in June 2024. Migration guide provided as well.

@CICCIOSGAMINO - can this repo be updated accordingly resp. as indicated by @adam6806 in his PR?