## 天氣預報
~~~[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": "找不到此地名!"
}
}
~~~