Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenWeatherOneCall #215

Open
Brown-onion opened this issue Feb 23, 2024 · 2 comments
Open

OpenWeatherOneCall #215

Brown-onion opened this issue Feb 23, 2024 · 2 comments

Comments

@Brown-onion
Copy link

The API request for 2.5 seems to not be supported by OpenWeatherOneCall anymore.
I believe 3.0 is but haven't figured out how to change the URL in the library to test it.
the library calls
http://api.openweathermap.org:80/data/2.5/onecall
And I believe it needs to call
http://api.openweathermap.org:80/data/3.0/onecall
This should be an easy fix, but I can't find the library file that contains it.

Cheers

@marcelstoer
Copy link
Member

It's the OpenWeatherMap... files in the src folder at https://github.com/ThingPulse/esp8266-weather-station/tree/master/src.

@Brown-onion
Copy link
Author

Brown-onion commented Feb 23, 2024

I thought it may have been in there but looked in OpenWeatherMapOneCall.h and OpenWeatherMapOneCall.cpp but couldn't find a http link to change.
The serial print in the sketch reads '[HTTP] Requesting resource at http://api.openweathermap.org:80/data/2.5/onecall?appid........ Then my API key and other parameters in the program.

I'll keep looking anyway.

UPDATE: Line 42 of OpenWeatherMapCurrent.cpp the 2.5 needs to be changed to 3.0. But I don't believe that 2.5 works anymore so this library could use a version update to maintain it as current.

Feel free to close this as complete when updated.

CHEERS!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants