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

New OpenWeather API #291

Open
hashtagsandro opened this issue Jun 6, 2024 · 0 comments
Open

New OpenWeather API #291

hashtagsandro opened this issue Jun 6, 2024 · 0 comments

Comments

@hashtagsandro
Copy link

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.

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

1 participant