实况
bash
curl "https://api.caiyunapp.com/v2.3/TAkhjf8d1nlSlspN/101.6656,39.2072/realtime"
json
{
"status": "ok",
"api_version": "v2.3",
"api_status": "active",
"server_time": 1640785750,
"location": [39.2072, 101.6656],
"tzshift": 28800,
"lang": "zh_CN",
"unit": "metric",
"result": {
"status": "ok",
"temperature": -14,
"humidity": 0.54,
"cloudrate": 0,
"skycon": "CLEAR_NIGHT",
"visibility": 6.3,
"dswrf": 0,
"wind": {
"speed": 6.84,
"direction": 172
},
"pres": 85651.2,
"apparent_temperature": -18.3,
"precipitation": {
"local": {
"status": "ok",
"datasource": "gfs",
"intensity": 0
}
},
"aqi": 65,
"pm25": 46,
"pm10": 79,
"o3": 27,
"so2": 9,
"no2": 53,
"co": 1,
"ultraviolet": {
"index": 0,
"desc": "无"
},
"comfort": {
"index": 12,
"desc": "湿冷"
}
}
}
JSONPath $.result.realtime. | 说明 |
---|---|
temperature | 地表 2 米气温 |
apparent_temperature | 体感温度 |
pressure | 地面气压 |
humidity | 地表 2 米湿度相对湿度(%) |
wind.direction | 地表 10 米风向 |
wind.speed | 地表 10 米风速 |
precipitation.local.intensity | 本地降水强度 |
cloudrate | 总云量(0.0-1.0) |
dswrf | 向下短波辐射通量(W/M2) |
visibility | 地表水平能见度 |
skycon | 天气现象 |
comfort.desc | 参见 生活指数 |
ultraviolet.desc | 参见 生活指数 |
pm25 | PM25 浓度(μg/m3) |
pm10 | PM10 浓度(μg/m3) |
o3 | 臭氧浓度(μg/m3) |
no2 | 二氧化氮浓度(μg/m3) |
so2 | 二氧化硫浓度(μg/m3) |
co | 一氧化碳浓度(mg/m3) |
aqi.chn | 国标 AQI |