获取本地天气接口
2023-01-24 09:16:15 最后更新
//代码如下(直接复制调用):
s 控件id=3
s 控件id2=4
s 控件id3=5
s 控件id4=6
s 控件id5=7
t()
{
s tqhoo = "User-Agent=Mozilla/5.0 (Linux; Android 8.0.0; MHA-AL00 Build/HUAWEIMHA-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/65.0.3325.109 Mobile Safari/537.36"
s tqa="https://m.tianqi.com/"
hs(tqa,null,"utf-8",null,true,tqhoo,tqwz)
sj(tqwz,"","",定位)
ss(" "+定位+"",定位)
sj(tqwz,"","",时间)
ss(""+时间+" 更新",时间)
sj(tqwz,"","",今日)
sj(tqwz,"",天气图标)
ss("https://m.tianqi.com"+天气图标+"",天气图标)
hd(天气图标,"$天气图标.png",true,tqtb)
sj(tqwz,"","",实时天气)
sr(实时天气,""," ",实时天气)
sj(tqwz,"","",天气实况)
sj(tqwz,"","",空气质量)
sj(tqwz,"","",湿度)
sj(tqwz,"","",风向)
sj(tqwz,"div class=\"city_weather cbg_","\"",天气背景)
ufnsui()
{
us(控件id,"text",定位)
us(控件id2,"text",今日)
us(控件id5,"src","$天气图标.png")
us(控件id3,"text",实时天气)
us(控件id4,"text",天气实况)
}
}

//作者:未知