Bodmer / OpenWeather

Arduino library to fetch weather information from OpenWeather
Other
46 stars 11 forks source link

strDate(current->dt); = Jan 1 1.00. #8

Open digitongithub opened 1 year ago

digitongithub commented 1 year ago

Please Help!!! I'm very happy that I get everything on the display, only I don't have any current weather forecasting because the date time is Jan 1 1:00. Can anyone tell me what I'm doing wrong.

Many thanx for every answer.

Bodmer commented 1 year ago

The onecall API calls need a subscription.

Which sketch are you running?

elzershark commented 1 year ago

Für die Onecall-API-Aufrufe ist ein Abonnement erforderlich.

Welchen Sketch verwendest du?

Has nothing to do with this. There is no 2.5 version of call. It must be called 3.0 the library is buggy. Open the Weather.cpp file in xxxxx\libraries\OpenWeather

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

to

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

digitongithub commented 1 year ago

Thank you for a possible solution. Have been leaving this project behind for a while because I didn't get the date right. Go look up the old data again soon and try again.

BigStu60 commented 1 year ago

I have a similar issue. I have a subscription, have modified the .ccp file. Where abouts do I set up the starting date?