Last Updated on : 2023-06-20 12:39:04
Get the weather history for the past 24 hours. The returned result is the weather conditions for the past 24 hours from the current nearest hour.
GET: /v2.0/iot-03/weather/history24
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
lat | String | query | true | The latitude. |
lon | String | query | true | The longitude. |
Parameter name | Type | Description |
---|---|---|
result | HistoryWeatherResultDTO | The returned result. |
Description of result
Parameter name | Type | Description |
---|---|---|
history_weather_map | Map | The returned map. key is the timestamp and value is the weather information. |
GET: /v2.0/iot-03/weather/history24
{
"lat": "30.26227852897212",
"lon": "120.1141665549348"
}
{
"1658124000000": { // The time period
"aqi": "30", // Air quality index
"co": "0.6", // Carbon monoxide
"condition": "Overcast", // Description of weather conditions
"humidity": "64", // Humidity
"no2": "7.0", // Nitrogen dioxide
"o3": "94.0", // Ozone
"pm10": "22.0", // PM10
"pm25": "12.0", // PM2.5
"pressure": "998", // Atmospheric pressure
"rank": "242/683", // Air rating
"real_feel": "34", // Apparent temperature
"so2": "6.0", // Sulfur dioxide
"sun_rise": "1658178600000", // Sunrise time
"sun_set": "1658228460000", // Sunset time
"temp": "32", // Temperature
"tips": "It's a little hot. Please drink plenty of water." // Tips
"uvi": "1", // Ultraviolet index
"wind_dir": "W", // Wind direction
"wind_level": "3", // Wind speed level
"wind_speed": "5.0" // Wind speed
}
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback