【技术交流】萌新对天气皮肤的修改,顺手求一个xml能用的皮肤
rainmeter吧
全部回复
仅看楼主
level 5
哈罗大家好这里是2级新人,最近中国天气网的接口又改了,自己摸索了修改方法亲测能用,便分享出来交流
----------------------先啰嗦几句-------------------------
其实我用rainmeter很久了,不过没有系统学习过,也没怎么交流过,更不懂怎么编写,基本都是自己摸索的。
最近天气又挂了后,一路百度到贴吧,但吧主的天气置顶帖里面的链接都点不开,可能是吧主遇到什么不开心的事了吧(大家要爱护吧主呀),于是很不巧看不到教程。
然后研究了会中国天气网的,已经解决了问题,但xml开头皮肤实在不知道怎么弄,望有吧友能指导一二
----------------------下面开始正文-----------------------
2016年08月04日 13点08分 1
level 5
=============
升3级了,好快。。。。。。
===============================================
第一步右击皮肤点编辑皮肤后,把RegExp替换成这样
RegExp="{"weatherinfo":{"city":"(.*)","city_en":"(.*)","cityid":(.*),"date":"(.*)","date_y":"(.*)","fchh":(.*),"fl1":"(.*)","fl2":"(.*)","fl3":"(.*)","fl4":"(.*)","fl5":"(.*)","fl6":"(.*)","fx1":"(.*)","fx2":"(.*)","img1":"(.*)","img10":"(.*)","img11":"(.*)","img12":"(.*)","img2":"(.*)","img3":"(.*)","img4":"(.*)","img5":"(.*)","img6":"(.*)","img7":"(.*)","img8":"(.*)","img9":"(.*)","img_single":(.*),"img_title1":"(.*)","img_title10":"(.*)","img_title11":"(.*)","img_title12":"(.*)","img_title2":"(.*)","img_title3":"(.*)","img_title4":"(.*)","img_title5":"(.*)","img_title6":"(.*)","img_title7":"(.*)","img_title8":"(.*)","img_title9":"(.*)","img_title_single":"(.*)","index":"(.*)","index48":"(.*)","index48_d":"(.*)","index48_uv":"(.*)","index_ag":"(.*)","index_cl":"(.*)","index_co":"(.*)","index_d":"(.*)","index_ls":"(.*)","index_tr":"(.*)","index_uv":"(.*)","index_xc":"(.*)","st1":(.*),"st2":(.*),"st3":(.*),"st4":(.*),"st5":(.*),"st6":(.*),"temp1":"(.*)","temp2":"(.*)","temp3":"(.*)","temp4":"(.*)","temp5":"(.*)","temp6":"(.*)","tempF1":"(.*)","tempF2":"(.*)","tempF3":"(.*)","tempF4":"(.*)","tempF5":"(.*)","tempF6":"(.*)","weather1":"(.*)","weather2":"(.*)","weather3":"(.*)","weather4":"(.*)","weather5":"(.*)","weather6":"(.*)","week":"(.*)","wind1":"(.*)","wind2":"(.*)","wind3":"(.*)","wind4":"(.*)","wind5":"(.*)","wind6":"(.*)"}}"
-------------------------------------------------------------------------------
第二步,修改StringIndex,就是代码里面长得像这样的东西:
;第1天(当天)最高--最低温度
[MeasureWeatherTemp1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=59
,,,
只要把StringIndex= 后面的数字从旧顺序改成新顺序,只要是类似的StringIndex=的代码段全都得修改,楼下会发完整顺序列表
2016年08月04日 13点08分 3
level 5
总共83个参数,都是我自己整理手打出来的。
总之对应着改吧,当然83个参数并不是要改83项,有些皮肤用得多有些用得少,用了多少改多少。
特别说明一下,这个是六天的预报,一般皮肤只取前四天。img天气图标之所以有12个是因为每天有两个,还有这个排序居然把10-12排在了1后面(可以,这很字母表)
StringIndex
1 city
2 city_en
3 cityid
4 date
5 date_y
6 fchh
7 fl1
8 fl2
9 fl3
10 fl4
11 fl5
12 fl6
13 fx1
14 fx2
15 img1
16 img10
17 img11
18 img12
19 img2
20 img3
21 img4
22 img5
23 img6
24 img7
25 img8
26 img9
27 img_single
28 img_title1
29 img_title10
30 img_title11
31 img_title12
32 img_title2
33 img_title3
34 img_title4
35 img_title5
36 img_title6
37 img_title7
38 img_title8
39 img_title9
40 img_title_single
41 index
42 index48
43 index48_d
44 index48_uv
45 index_ag
46 index_cl
47 index_co
48 index_d
49 index_ls
50 index_tr
51 index_uv
52 index_xc
53 st1
54 st2
55 st3
56 st4
57 st5
58 st6
59 temp1
60 temp2
61 temp3
62 temp4
63 temp5
64 temp6
65 tempF1
66 tempF2
67 tempF3
68 tempF4
69 tempF5
70 tempF6
71 weather1
72 weather2
73 weather3
74 weather4
75 weather5
76 weather6
77 week
78 wind1
79 wind2
80 wind3
81 wind4
82 wind5
83 wind6
2016年08月04日 13点08分 4
level 5
以上为纯手打,相信吧里大神们其实都能自己弄明白,这篇主要给像我一样没多少软件使用技巧的人看的。
最后再问一遍,求一个weather.com能用的皮肤或者告诉我这种皮肤的代码应该怎么改啊!!!!!!
最后发几张我使用中的比较喜欢的皮肤套装
==============END================
2016年08月04日 14点08分 6
@yz8310 要不你把整个皮肤的文件发百度云分享吧,我明天看看[非纯正技术党不保证能弄好]
2016年08月04日 15点08分
我分享了的 私聊把地址给了你的 谢谢了
2016年08月04日 16点08分
大哥,只能win7用吗
2016年08月07日 04点08分
@wuyuzegang66 我是win10的
2016年08月07日 04点08分
吧务
level 13
帮你要个精@小小小号宠
2016年08月04日 14点08分 8
level 3
终于好了!感谢楼主!![太开心]
2016年08月04日 16点08分 10
level 1
楼主 如果 原来 Url 是 xml的 你也不知道怎么弄是吗?
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Unit#&dayf=4
比如说这样的
2016年08月05日 08点08分 11
是的[泪]
2016年08月06日 14点08分
level 5
7L的千变素描配置文件分享连接

http://yun.baidu.com/share/link?shareid=2379402525&uk=2349480107
2016年08月05日 11点08分 14
谢谢
2016年08月06日 09点08分
为什么我替换后没有图像了,天气图片没有了
2016年08月06日 15点08分
好了,谢谢
2016年08月06日 15点08分
谢谢[真棒]
2016年08月08日 15点08分
level 1
很有用,谢楼主啦
2016年08月05日 17点08分 16
level 1
预报里的小时不知道应该填哪个数字
;时间
[MeasureHour]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherF]
StringIndex=
2016年08月06日 15点08分 17
level 1
风力风向还是无法显示。
2016年08月06日 15点08分 18
风力风向是因为原网页已经没这个信息了,信息网站不发布,咱们自然也就读不到了
2016年08月06日 15点08分
level 1
感谢楼主小白教程,天气又恢复了![真棒]
2016年08月10日 05点08分 21
level 4
不错不错~完美解决~谢谢楼主
2016年08月12日 14点08分 22
level 5
8.18,晚上下班回来发现网页又改回以前的样子了,本贴暂时作废,姑且再改回去吧[汗]
--------------------------------------------------------------------------------------------------
2016年08月18日 11点08分 34
把帖子顶上去,幸亏我也备份了,用回原来的了![哈哈]
2016年08月18日 13点08分
@请叫我卡比兽 能求个能用的ini吗😳😳320我589怕449被@q删q.c掉om
2016年08月18日 14点08分
@落枫无迹 按照楼主说的修改就行了。
2016年08月23日 03点08分
@请叫我卡比兽 我修改的不行啊
2016年09月11日 08点09分
level 10
楼主发个能用的天气ini吗?☺117481511qq.xxx
2016年08月20日 16点08分 36
1 2 尾页