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

OpenWeather's One Call 3.0 API change #29

Open
grm1209 opened this issue Nov 10, 2024 · 1 comment
Open

OpenWeather's One Call 3.0 API change #29

grm1209 opened this issue Nov 10, 2024 · 1 comment

Comments

@grm1209
Copy link

grm1209 commented Nov 10, 2024

OpenWeather's One Call 3.0 API changed element "timezone_offset" to "timezone". The changes to OpenWeather.cpp are:

62,62c61,62
< String url = "https://api.openweathermap.org/data/3.0/onecall?lat=" + latitude + "&lon=" + longitude + "&exclude=minutely" + exclude + "&units=" + units + "&lang=" + language + "&appid=" + api_key;

String url = "https://api.openweathermap.org/data/2.5/onecall?lat=" + latitude + "&lon=" + longitude + "&exclude=minutely" + exclude + "&units=" + units + "&lang=" + language + "&appid=" + api_key;
519c518
< if (currentKey == "timezone") timezone = value;


if (currentKey == "timezone_offset") timezone = value;
@gamebox13
Copy link

I made this changes and it gives errors on ESP32-S3

The connection to server is secure (https). Certificate not checked.

Sending GET request to api.openweathermap.org port 443
Header end found

Parsing JSON
[  8670][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"

Done in 4018 ms

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