OpenWeather icon indicating copy to clipboard operation
OpenWeather copied to clipboard

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

Open digitongithub opened this issue 2 years ago • 4 comments

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.

digitongithub avatar Mar 15 '23 19:03 digitongithub

The onecall API calls need a subscription.

Which sketch are you running?

Bodmer avatar Jun 07 '23 22:06 Bodmer

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;

elzershark avatar Jul 22 '23 17:07 elzershark

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.

digitongithub avatar Jul 31 '23 06:07 digitongithub

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

BigStu60 avatar Oct 07 '23 22:10 BigStu60