|
发表于 2018-6-24 22:42:25
|
显示全部楼层
Dear 大腿:
用上了您的插件了,感激不尽!在做时间触发自动化,每天早晨7:15分让小爱音箱自动播报天气预报。有三个参数想取到:1.当天的最低温度,2.当天的最高温度,3.当天的总体天气情况(晴、多云、雨、雪、大风)之类。这三个参数用heweather_hourlyforecast中提供的小时预报不太适合。需要的信息在返回的json里面应该有的,如下,请问能帮忙新写个heweather_dailyforecast这样的sensor吗?非常感谢!
"daily_forecast": [
{
"astro": {
"mr": "15:36",
"ms": "02:10",
"sr": "04:54",
"ss": "19:10"
},
"cond": {
"code_d": "101",
"code_n": "101",
"txt_d": "多云",
"txt_n": "多云"
},
"date": "2018-06-24",
"hum": "76",
"pcpn": "0.0",
"pop": "25",
"pres": "1007",
"tmp": {
"max": "30",
"min": "24"
},
"uv": "6",
"vis": "10",
"wind": {
"deg": "164",
"dir": "东南风",
"sc": "3-4",
"spd": "13"
}
}, |
|