I have seen that. OneCall does only accept
lat=1.234&lon=2.345 and in that format only. StationID or city name is not accepted in this api.
The response contains a lot of useful information (see samples below). I think current weather is free for 60 call's per minute. The hourly and daily info are free for max of 1000 calls per day ( say 1 call per 2 minutes ). A "minute forecast" may be (or may not yet be available) and it is possible to exclude either one or more of those sections.
Code: Select all
"current": {
"dt": 1596050589,
"sunrise": 1595993828,
"sunset": 1596052438,
"temp": 14.68,
"feels_like": 6.07,
"pressure": 1014,
"humidity": 75,
"dew_point": 10.3,
"uvi": 5.59,
"clouds": 100,
"visibility": 10000,
"wind_speed": 12.48,
"wind_deg": 286,
"weather": [
{
"id": 500,
"main": "Rain",
"description": "light rain",
"icon": "10d"
}
],
"rain": {
"1h": 0.13
}
},
48 hours hourly forecast (showing 1 hour only)
Code: Select all
"hourly": [
{
"dt": 1596049200,
"temp": 14.68,
"feels_like": 6.07,
"pressure": 1014,
"humidity": 75,
"dew_point": 10.3,
"clouds": 100,
"visibility": 10000,
"wind_speed": 12.48,
"wind_deg": 286,
"weather": [
{
"id": 500,
"main": "Rain",
"description": "light rain",
"icon": "10d"
}
],
"pop": 0.58,
"rain": {
"1h": 0.13
}
},
and 7 dayly forecast (showing 1 day only)
Code: Select all
"daily": [
{
"dt": 1596020400,
"sunrise": 1595993828,
"sunset": 1596052438,
"temp": {
"day": 14.68,
"min": 14.55,
"max": 14.68,
"night": 14.55,
"eve": 14.68,
"morn": 14.68
},
"feels_like": {
"day": 5.96,
"night": 7.4,
"eve": 5.96,
"morn": 5.96
},
"pressure": 1014,
"humidity": 75,
"dew_point": 10.3,
"wind_speed": 12.63,
"wind_deg": 283,
"weather": [
{
"id": 500,
"main": "Rain",
"description": "light rain",
"icon": "10d"
}
],
"clouds": 100,
"pop": 0.84,
"rain": 0.81,
"uvi": 5.59
},