## 天气预报
~~~[api]
post:http://api.haiyunyi.cn/weather
*appid#appid联系客服获取
*appkey#appkey联系客服获取
*area=武汉#要查询的地区名称,areaid与area两个字段必须输入其中一个。当两者都输入时,系统只取areaid
areaid#要查询的地区id
needMoreDay#是否需要返回7天数据中的后4天。1为返回,0为不返回
needIndex#是否需要返回指数数据,比如穿衣指数、紫外线指数等。1为返回,0为不返回
<<<
success
{
"hyy_code": 200,
"hyy_msg": "success!",
"hyy_data": {
"time": "20170914113000",
"ret_code": 0,
"now": {
"aqiDetail": {
"co": "0.65",
"num": "355",
"so2": "9",
"area": "武汉",
"o3": "180",
"no2": "20",
"quality": "轻度污染",
"aqi": "103",
"pm10": "53",
"pm2_5": "20",
"o3_8h": "162",
"primary_pollutant": "臭氧8小时"
},
"weather_code": "00",
"temperature_time": "17:30",
"wind_direction": "东北风",
"wind_power": "2级",
"sd": "38%",
"aqi": "103",
"weather": "晴",
"weather_pic": "http://app1.showapi.com/weather/icon/day/00.png",
"temperature": "30"
},
"cityInfo": {
"c6": "hubei",
"c5": "武汉",
"c4": "wuhan",
"c3": "武汉",
"c9": "中国",
"c8": "china",
"c7": "湖北",
"c17": "+8",
"c16": "AZ9270",
"c1": "101200101",
"c2": "wuhan",
"longitude": 114.279,
"c11": "027",
"latitude": 30.573,
"c10": "1",
"c12": "430000",
"c15": "27"
},
"f1": {
"day_weather": "晴",
"night_weather": "晴",
"night_weather_code": "00",
"air_press": "1015 hPa",
"jiangshui": "0%",
"night_wind_power": "微风 <5.4m/s",
"day_wind_power": "微风 <5.4m/s",
"day_weather_code": "00",
"sun_begin_end": "06:06|18:31",
"ziwaixian": "强",
"day_weather_pic": "http://app1.showapi.com/weather/icon/day/00.png",
"weekday": 4,
"night_air_temperature": "19",
"day_air_temperature": "30",
"day_wind_direction": "无持续风向",
"day": "20170914",
"night_weather_pic": "http://app1.showapi.com/weather/icon/night/00.png",
"night_wind_direction": "无持续风向"
},
"f3": {
"day_weather": "晴",
"night_weather": "晴",
"night_weather_code": "00",
"air_press": "1015 hPa",
"jiangshui": "0%",
"night_wind_power": "微风 <5.4m/s",
"day_wind_power": "微风 <5.4m/s",
"day_weather_code": "00",
"sun_begin_end": "06:07|18:28",
"ziwaixian": "强",
"day_weather_pic": "http://app1.showapi.com/weather/icon/day/00.png",
"weekday": 6,
"night_air_temperature": "19",
"day_air_temperature": "29",
"day_wind_direction": "无持续风向",
"day": "20170916",
"night_weather_pic": "http://app1.showapi.com/weather/icon/night/00.png",
"night_wind_direction": "无持续风向"
},
"f2": {
"day_weather": "晴",
"night_weather": "晴",
"night_weather_code": "00",
"air_press": "1015 hPa",
"jiangshui": "0%",
"night_wind_power": "微风 <5.4m/s",
"day_wind_power": "微风 <5.4m/s",
"day_weather_code": "00",
"sun_begin_end": "06:07|18:29",
"ziwaixian": "强",
"day_weather_pic": "http://app1.showapi.com/weather/icon/day/00.png",
"weekday": 5,
"night_air_temperature": "20",
"day_air_temperature": "29",
"day_wind_direction": "无持续风向",
"day": "20170915",
"night_weather_pic": "http://app1.showapi.com/weather/icon/night/00.png",
"night_wind_direction": "无持续风向"
},
"hyyapi_treemap": true
}
}
<<<
error
{
"hyy_code": 200,
"hyy_msg": "success!",
"hyy_data": {
"ret_code": -1,
"remark": "找不到此地名!"
}
}
~~~