Qrome / marquee-scroller

Marquee Scroller Clock News Weather and More
https://www.thingiverse.com/thing:2867294
MIT License
324 stars 159 forks source link

New OpenWeather API #291

Open hashtagsandro opened 1 month ago

hashtagsandro commented 1 month ago

Good Afternoon,

In near future openweather will change api into a business model and also as api call results.

For example from 2.5

{ "cnt": 1, "list": [ { "coord": { "lon": 10.316, "lat": 43.5426 }, "sys": { "country": "IT", "timezone": 7200, "sunrise": 1717645110, "sunset": 1717700204 }, "weather": [ { "id": 800, "main": "Clear", "description": "clear sky", "icon": "01d" } ], "main": { "temp": 297.94, "feels_like": 298.28, "temp_min": 296.97, "temp_max": 299.34, "pressure": 1019, "humidity": 69 }, "visibility": 10000, "wind": { "speed": 5.14, "deg": 240 }, "clouds": { "all": 0 }, "dt": 1717676155, "id": 3174659, "name": "Livorno" } ] }

TO

V 3

{ "lat": 43.5426, "lon": 10.316, "timezone": "Europe/Rome", "timezone_offset": 7200, "current": { "dt": 1717677349, "sunrise": 1717645110, "sunset": 1717700204, "temp": 297.69, "feels_like": 298, "pressure": 1019, "humidity": 69, "dew_point": 291.63, "uvi": 6.86, "clouds": 0, "visibility": 10000, "wind_speed": 4.63, "wind_deg": 270, "weather": [ { "id": 800, "main": "Clear", "description": "cielo sereno", "icon": "01d" } ] } }

Will also change the base url for make the API calls:

https://api.openweathermap.org/data/2.5/group?id=3174659&cnt=1&APPID= + myCityIDs + "&units=" + units + "&cnt=1&APPID=" + myApiKey + " HTTP/1.1";

https://api.openweathermap.org/data/3.0/onecall?appid=[REDACTED]&lang=it&lat=43.5426&lon=10.316&exclude=minutely,hourly,daily,alerts

I'm not a developer but after some hour I've found this issue.