-
Notifications
You must be signed in to change notification settings - Fork 368
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
ESP8266 WiFi Weather Station stopped showing weather data #219
Comments
Looks like opeweathermap stopped providing access to their api through http. You can try to use https instead. |
I can't confirm that.
|
And yet all my weather stations that use openweathermap suddenly stopped showing weather, browser via http shows ERR_CONNECTION_RESET as well. curl shows the same. Many people on internet say about that propblem. Probably it depends on user's location. |
Interesting observation but I'm still somewhat doubtful OWM is to blame for that. Just to be sure, I briefly checked back with their support and they confirmed.
So, I suggest you contact them directly if HTTP ain't working for you. Maybe include the full cURL debug output. |
See the same issue. After rebuilding the project the serial monitor gets stuck at |
We need to update the api calls: Please note that API requests by city name, zip-codes and city id have been deprecated. Although they are still available for use, bug fixing and updates are no longer available for this functionality." |
I was able to get kinda workaround for the issue by adding do{} while() cycle into my code like this: do{
client.updateCurrentById(&data, OPEN_WEATHER_MAP_APP_ID, OPEN_WEATHER_MAP_LOCATION_ID);
delay(10000);
} while(data.cod != 200); instead of just foundForecasts = forecastClient.updateForecastsById(forecastData, OPEN_WEATHER_MAP_APP_ID, OPEN_WEATHER_MAP_LOCATION_ID, MAX_FORECASTS);
delay(10000);
} while (foundForecasts != MAX_FORECASTS); It works for me now. |
I took a slightly different brute force route and "hard" coded my coordinates into OpenWeatherMapCurrent.cpp String OpenWeatherMapCurrent::buildPath(String appId, String locationParameter) {
String units = metric ? "metric" : "imperial";
locationParameter = "lat=xx.yyyy&lon=a.bbbb";
return "/data/2.5/weather?" + locationParameter + "&appid=" + appId + "&units=" + units + "&lang=" + language;
} and OpenWeatherMapForecast.cpp String OpenWeatherMapForecast::buildPath(String appId, String locationParameter) {
String units = metric ? "metric" : "imperial";
locationParameter = "lat=xx.yyyy&lon=a.bbbb";
return "/data/2.5/forecast?" + locationParameter + "&appid=" + appId + "&units=" + units + "&lang=" + language;
} by setting locationParameter with lat and lon received from an http call. |
That's odd. I am aware that the API-by-city-id has been deprecated for a long time. However, as long as they don't remove it completely, it is not supposed to fail. Hence, their current promise is, that it shouldn't matter whether you query by city ID or lat/lon. |
Hello Marcel, |
Not sure if this is a”bug”…
I built the ESP8266 WiFi Weather Station (Adafruit kit) in the summer of 2020. It worked fine till this spring (2024). It still displays the correct time, but there is no weather information (shows “?” In all the fields). It also does not update the moon-phase data anymore. No changes made to the code or wifi setup.
I requested a new key from OpenWeatherMap, updated the settings.h file, recompiled and uploaded the code, I replaced the ESP8266 and I also reset my WiFi service. But nothing has resolved the issue. I see no errors in the serial console output, and see that the upload works OK.
Has anybody else had this problem? Any suggestions on what to do? I don’t know how to debug this. Any test code I can add?
Thanks
The text was updated successfully, but these errors were encountered: