包含以下指数, 很良心, 调用简单, GET一下即可:
空调开启指数、过敏指数、晨练指数、舒适度指数、穿衣指数、钓鱼指数、防晒指数、逛街指数、太阳镜指数、感冒指数、干燥指数、划船指数、交通指数、路况指数、晾晒指数、美发指数、夜生活指数、啤酒指数、放风筝指数、空气污染扩散条件指数、化妆指数、旅游指数、紫外线强度指数、风寒指数、洗车指数、心情指数、运动指数、约会指数、雨伞指数、中暑指数、戴口罩指数。
接口地址(请去官网注册账号, 使用自己的appid和appsecret)
https://www.tianqiapi.com/life/lifepro?appid=23035354&appsecret=8YvlPNrz
调用方法
curl https://www.tianqiapi.com/life/lifepro?appid=23035354&appsecret=8YvlPNrz
返回json
{
city: "济南",
cityid: "101120101",
update_time: "2020-06-15 15:00:12",
data: {
kongtiao: {
name: "空调开启指数",
level: "部分时间开启",
desc: "天气燥热需适当开启空调,以免中暑。"
},
guomin: {
name: "过敏指数",
level: "不易发",
desc: "除特殊体质,无需担心过敏问题。"
},
chenlian: {
name: "晨练指数",
level: "较适宜",
desc: "请选择避风的地点晨练,避免迎风锻炼。"
},
shushidu: {
name: "舒适度指数",
level: "较不舒适",
desc: "多云,有些热。"
},
chuanyi: {
name: "穿衣指数",
level: "炎热",
desc: "建议穿短衫、短裤等清凉夏季服装。"
},
diaoyu: {
name: "钓鱼指数",
level: "较适宜",
desc: "风稍大会对垂钓产生一定影响。"
},
fangshai: {
name: "防晒指数",
level: "中等",
desc: "适合涂擦SPF大于15,PA+护肤品。"
},
guangjie: {
name: "逛街指数",
level: "较不宜",
desc: "天气炎热,避免长时间暴晒,小心中暑。"
},
taiyangjing: {
name: "太阳镜指数",
level: "非常必要",
desc: "建议佩戴透射比3级且100%UV吸收的遮阳镜"
},
ganmao: {
name: "感冒指数",
level: "少发",
desc: "感冒机率较低,避免长期处于空调屋中。"
},
ganzao: {
name: "干燥指数",
level: "干燥",
desc: "气温偏高,皮肤易失去水分,建议多饮水;使用润肤型保湿护肤品;尽量少食用刺激性的食品。"
},
huachuan: {
name: "划船指数",
level: "适宜",
desc: "天气较好,适宜划船及嬉玩水上运动。"
},
jiaotong: {
name: "交通指数",
level: "良好",
desc: "气象条件良好,车辆可以正常行驶。"
},
lukuang: {
name: "路况指数",
level: "干燥",
desc: "天气略热,路况较好,定期让车辆休息。"
},
liangshai: {
name: "晾晒指数",
level: "适宜",
desc: "天气不错,抓紧时机让衣物晒太阳吧。"
},
meifa: {
name: "美发指数",
level: "一般",
desc: "注意头发清洁,选用防晒型护发品。"
},
yeshenghuo: {
name: "夜生活指数",
level: "较适宜",
desc: "只要您稍作准备就可以放心外出。"
},
pijiu: {
name: "啤酒指数",
level: "适宜",
desc: "炎热干燥,可饮用清凉的啤酒,不要贪杯。"
},
fengzheng: {
name: "放风筝指数",
level: "不宜",
desc: "天气酷热,不适宜放风筝。"
},
wuran: {
name: "空气污染扩散条件指数",
level: "中",
desc: "易感人群应适当减少室外活动。"
},
huazhuang: {
name: "化妆指数",
level: "防脱水",
desc: "请选用防脱水化妆品。"
},
lvyou: {
name: "旅游指数",
level: "一般",
desc: "天气热,外出请注意防暑降温和防晒。"
},
ziwaixian: {
name: "紫外线强度指数",
level: "中等",
desc: "涂擦SPF大于15、PA+防晒护肤品。"
},
fenghan: {
name: "风寒指数",
level: "无",
desc: "温度未达到风寒所需的低温,稍作防寒准备即可。"
},
xiche: {
name: "洗车指数",
level: "较适宜",
desc: "无雨且风力较小,易保持清洁度。"
},
xinqing: {
name: "心情指数",
level: "较差",
desc: "气温较高,会让人觉得有些烦躁。"
},
yundong: {
name: "运动指数",
level: "较适宜",
desc: "请适当减少运动时间,降低运动强度。"
},
yuehui: {
name: "约会指数",
level: "不适宜",
desc: "建议在室内约会,免去天气的骚扰。"
},
yusan: {
name: "雨伞指数",
level: "不带伞",
desc: "天气较好,不用带雨伞。"
},
zhongshu: {
name: "中暑指数",
level: "无中暑风险",
desc: "天气舒适,令人神清气爽的一天,不用担心中暑的困扰。"
},
kouzhao: {
name: "戴口罩指数",
level: "",
desc: ""
}
}
}