实况
bash
curl "https://api.caiyunapp.com/v2.5/TAkhjf8d1nlSlspN/101.6656,39.2072/realtime"
json
{
"status": "ok",
"api_version": "v2.5",
"api_status": "active",
"lang": "zh_CN",
"unit": "metric",
"tzshift": 28800,
"timezone": "Asia/Shanghai",
"server_time": 1640745758,
"location": [39.2072, 101.6656],
"result": {
"realtime": {
"status": "ok",
"temperature": -7,
"humidity": 0.58,
"cloudrate": 0,
"skycon": "CLEAR_DAY",
"visibility": 7.8,
"dswrf": 47.7,
"wind": {
"speed": 1.8,
"direction": 22
},
"pressure": 85583.47,
"apparent_temperature": -9.9,
"precipitation": {
"local": {
"status": "ok",
"datasource": "radar",
"intensity": 0
},
"nearest": {
"status": "ok",
"distance": 10000,
"intensity": 0
}
},
"air_quality": {
"pm25": 45,
"pm10": 49,
"o3": 6,
"so2": 8,
"no2": 42,
"co": 1.1,
"aqi": {
"chn": 63,
"usa": 124
},
"description": {
"chn": "良",
"usa": "轻度污染"
}
},
"life_index": {
"ultraviolet": {
"index": 3,
"desc": "弱"
},
"comfort": {
"index": 12,
"desc": "湿冷"
}
}
},
"primary": 0
}
}
JSONPath $.result.realtime. | 说明 |
---|---|
temperature | 地表 2 米气温 |
apparent_temperature | 体感温度 |
pressure | 地面气压 |
humidity | 地表 2 米湿度相对湿度(%) |
wind.direction | 地表 10 米风向 |
wind.speed | 地表 10 米风速 |
precipitation.nearest.distance | 最近降水带与本地的距离 |
precipitation.nearest.intensity | 最近降水处的降水强度 |
precipitation.local.intensity | 本地降水强度 |
cloudrate | 总云量(0.0-1.0) |
dswrf | 向下短波辐射通量(W/M2) |
visibility | 地表水平能见度 |
skycon | 天气现象 |
life_index.comfort.desc | 参见 生活指数 |
life_index.ultraviolet.desc | 参见 生活指数 |
air_quality.pm25 | PM25 浓度(μg/m3) |
air_quality.pm10 | PM10 浓度(μg/m3) |
air_quality.o3 | 臭氧浓度(μg/m3) |
air_quality.no2 | 二氧化氮浓度(μg/m3) |
air_quality.so2 | 二氧化硫浓度(μg/m3) |
air_quality.co | 一氧化碳浓度(mg/m3) |
air_quality.aqi.chn | 国标 AQI |