文档库 最新最全的文档下载
当前位置:文档库 › rainmeter天气皮肤自己改

rainmeter天气皮肤自己改

1、重新制作RSS字符串
天气网的RSS确实改了,可从网站https://www.wendangku.net/doc/2b11936637.html,/data/#CODE#.html (#CODE#换成对应的城市代码)上看到:
{"weatherinfo":{"city":"****","city_en":"********","date_y":"2010年7月2日","date":"庚寅年五月廿一","week":"星期五","fchh":"08","cityid":"101201601","temp1":"34℃~28℃","temp2":"33℃~27℃","temp3":"33℃~27℃","temp4":"33℃~27℃","temp5":"33℃~27℃","temp6":"33℃~27℃","tempF1":"93.2℉~82.4℉","tempF2":"91.4℉~80.6℉","tempF3":"91.4℉~80.6℉","tempF4":"91.4℉~80.6℉","tempF5":"91.4℉~80.6℉","tempF6":"91.4℉~80.6℉","weather1":"多云","weather2":"多云","weather3":"多云转阵雨","weather4":"阵雨转多云","weather5":"多云","weather6":"多云","img1":"1","img2":"99","img3":"1","img4":"99","img5":"1","img6":"3","img7":"3","img8":"1","img9":"1","img10":"99","img11":"1","img12":"99","img_single":"1","img_title1":"多云","img_title2":"多云","img_title3":"多云","img_title4":"多云","img_title5":"多云","img_title6":"阵雨","img_title7":"阵雨","img_title8":"多云","img_title9":"多云","img_title10":"多云","img_title11":"多云","img_title12":"多云","img_title_single":"多云","wind1":"微风","wind2":"微风","wind3":"微风","wind4":"微风","wind5":"微风","wind6":"微风","fx1":"微风","fx2":"微风","fl1":"小于3级","fl2":"小于3级","fl3":"小于3级","fl4":"小于3级","fl5":"小于3级","fl6":"小于3级","index":"炎热","index_d":"天气炎热,建议着短衫、短裙、短裤、薄型T恤衫、敞领短袖棉衫等清凉夏季服装。","index48":"炎热","index48_d":"天气炎热,建议着短衫、短裙、短裤、薄型T恤衫、敞领短袖棉衫等清凉夏季服装。","index_uv":"中等","index48_uv":"中等","index_xc":"较适宜","index_tr":"较适宜","index_co":"很不舒适","st1":"34","st2":"27","st3":"33","st4":"26","st5":"33","st6":"25","index_cl":"较适宜","index_ls":"适宜"}}
把关键字后面的内容用(.*)代替,如:"city":"****"改成 "city":"(.*)" (比较多,改的时候要细心!!!)改为这样:
"{"weatherinfo":{"city":"(.*)","city_en":"(.*)","date_y":"(.*)","date":"(.*)","week":"(.*)","fchh":"(.*)","cityid":"(.*)","temp1":"(.*)","temp2":"(.*)","temp3":"(.*)","temp4":"(.*)","temp5":"(.*)","temp6":"(.*)","tempF1":"(.*)","tempF2":"(.*)","tempF3":"(.*)","tempF4":"(.*)","tempF5":"(.*)","tempF6":"(.*)","weather1":"(.*)","weather2":"(.*)","weather3":"(.*)","weather4":"(.*)","weather5":"(.*)","weather6":"(.*)","img1":"(.*)","img2":"(.*)","img3":"(.*)","img4":"(.*)","img5":"(.*)","img6":"(.*)","img7":"(.*)","img8":"(.*)","img9":"(.*)","img10":"(.*)","img11":"(.*)","img12":"(.*)","img_single":"(.*)","img_title1":"(.*)","img_title2":"(.*)","img_title3":"(.*)","img_title4":"(.*)","img_title5":"(.*)","img_title6":"(.*)","img_title7":"(.*)","img_title8":"(.*)","img_title9":"(.*)","img_title10":"(.*)","img_title11":"(.*)","img_title12":"(.*)","img_title_single":"(.*)","w

ind1":"(.*)","wind2":"(.*)","wind3":"(.*)","wind4":"(.*)","wind5":"(.*)","wind6":"(.*)","fx1":"(.*)","fx2":"(.*)","fl1":"(.*)","fl2":"(.*)","fl3":"(.*)","fl4":"(.*)","fl5":"(.*)","fl6":"(.*)","index":"(.*)","index_d":"(.*)","index48":"(.*)","index48_d":"(.*)","index_uv":"(.*)","index48_uv":"(.*)","index_xc":"(.*)","index_tr":"(.*)","index_co":"(.*)","st1":"(.*)","st2":"(.*)","st3":"(.*)","st4":"(.*)","st5":"(.*)","st6":"(.*)","index_cl":"(.*)","index_ls":"(.*)"}}"
(可以直接复制上去,不过可能有问题的!!)
然后打开用户目录下的RM文件夹中的SKIN文件夹里的天气文件夹中的Weathers.ini文件,找到对应的选项[MeasureWeatherRSS],将RegExp=后面的都换成刚才制作的字符串。
2、修改对应的项目
继续修改Weathers.ini文件,找到WeatherRSS---setting那一段,因RSS添加了一个TEMP6,TEMPF6,WEATHER6三个字段,img和img_title也由10个增加到了12个,另增加了FX1和FX2两个字段,所以改动比较大,可对应下表一一修改。
例:[MeasureWeatherHot]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=20
其中StringIndex=20这一句中的20对应的就是下面的第20字段,掌握好字段对应的功能就很好改了。。。
改完后发现 气温状况与天气状况显示的正好是错位的,没办法,只好继续改这两项对应的坐标,互换一下,就显示正常了。
因不知道怎么上传文件,我的INI文件也发不上来了,SORRY...!

{"weatherinfo":{
1"city":"****",
2"city_en":"******",
3"date_y":"2010年7月1日",
4"date":"庚寅年五月二十",
5"week":"星期四",
6"fchh":"18",
7"cityid":"101201601",
8"temp1":"28℃~34℃",
9"temp2":"28℃~33℃",
10"temp3":"27℃~33℃",
11"temp4":"27℃~33℃",
12"temp5":"27℃~33℃",
13"temp6":"27℃~33℃",
14"tempF1":"82.4℉~93.2℉",
15"tempF2":"82.4℉~91.4℉",
16"tempF3":"80.6℉~91.4℉",
17"tempF4":"80.6℉~91.4℉",
18"tempF5":"80.6℉~91.4℉",
19"tempF6":"80.6℉~91.4℉",
20"weather1":"多云",
21"weather2":"多云",
22"weather3":"多云转阵雨",
23"weather4":"阵雨",
24"weather5":"多云",
25"weather6":"多",
26"img1":"1",
27"img2":"99",
28"img3":"1",
29"img4":"99",
30"img5":"1",
31"img6":"3",
32"img7":"3",
33"img8":"99",
34"img9":"1",
35"img10":"99",
36"img11":"1",
37"img12":"99",
38"img_single":"1",
39"img_title1":"多云",
40"img_title2":"多云",
41"img_title3":"多云",
42"img_title4":"多云",
43"img_title5":"多云",
44"img_title6":"阵雨",
45"img_title7":"阵雨",
46"img_title8":"阵雨",
47"img_title9":"多云",
48"img_title10":"多云",
49"img_title11":"多云",
50"img_title12":"多云",
51"img_title_single":"多云",
52"wind1":"微风",
53"wind2":"微风",
54"wind3":"微风",
55"wind4":"微风",
56"wind5":"微风",
57"wind6":"微风",
58"fx1":"微风",
59"fx2":"微风",
60"fl1":"小于3级",
61"fl2":"小于3级",
62"fl3":"小于3级",
63"fl4":"小

于3级",
64"fl5":"小于3级",
65"fl6":"小于3级",
66"index":"炎热",
67"index_d":"天气炎热,建议着短衫、短裙、短裤、薄型T恤衫、敞领短袖棉衫等清凉夏季服装。",
68"index48":"炎热",
69"index48_d":"天气炎热,建议着短衫、短裙、短裤、薄型T恤衫、敞领短袖棉衫等清凉夏季服装。",
70"index_uv":"中等",
71"index48_uv":"中等",
72"index_xc":"暂缺",
73"index_tr":"较适宜",
74"index_co":"很不舒适",
75"st1":"34",
76"st2":"28",
77"st3":"33",
78"st4":"28",
79"st5":"31",
80"st6":"27",
81"index_cl":"较适宜",
82"index_ls":"适宜"}}

相关文档
相关文档 最新文档