# 喜欢自己编写皮肤的可以进来看看:关于天气、WebParser、正则表达式 - 第2页 - Rainmeter技术教程 - 雨滴社区 - Powered by Discuz!
 找回密码
 点击注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

楼主: Geterns

[技术交流] 喜欢自己编写皮肤的可以进来看看:关于天气、WebParser、正则表达式

  [复制链接]

签到天数: 16 天

[LV.4]偶尔看看III

发表于 2012-9-8 00:18:19 | 显示全部楼层
我也死计算机专业的…………但是还是没看懂………………
回复

使用道具 举报

签到天数: 5 天

[LV.2]偶尔看看I

发表于 2012-9-8 19:55:55 | 显示全部楼层
每个字都看得懂,但是连起来就看不懂了
回复

使用道具 举报

签到天数: 18 天

[LV.4]偶尔看看III

发表于 2012-9-10 04:40:46 | 显示全部楼层
弱弱的问下,怎么把国内的皮肤代码改成国外的。

比如下面这个代码:

[Rainmeter]
Author=kooyer,Ubuntutux
BackgroundMode=1

;===================seting=======================================



;Metadata added by RainBrowser
;http://rainmeter.net/RainWiki/in ... _101#.5BMetadata.5D

[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=

;End of added Metadata

[Variables]
URL=http://m.weather.com.cn/data/101090113.html
URL2=http://www.weather.com.cn/html/weather/101090113.shtml
Font=黑体
Farbe=0,0,0,255


;================================================================

[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1500
Url=#URL#
;共有50个参数,10:temp3 20:image5 30:image_title6 40:fl3
RegExp="{"weatherinfo":{"city":"(.*)","city_en":"(.*)","date_y":"(.*)","date":"(.*)","week":"(.*)","fchh":"(.*)","cityid":"(.*)","temp1":"(.*)","temp2":"(.*)","temp3":"(.*)","temp4":"(.*)","weather1":"(.*)","weather2":"(.*)","weather3":"(.*)","weather4":"(.*)","img1":"(.*)","img2":"(.*)","img3":"(.*)","img4":"(.*)","img5":"(.*)","img6":"(.*)","img7":"(.*)","img8":"(.*)","img_single":"(.*)","img_title1":"(.*)","img_title2":"(.*)","img_title3":"(.*)","img_title4":"(.*)","img_title5":"(.*)","img_title6":"(.*)","img_title7":"(.*)","img_title8":"(.*)","img_title_single":"(.*)","wind1":"(.*)","wind2":"(.*)","wind3":"(.*)","wind4":"(.*)","fl1":"(.*)","fl2":"(.*)","fl3":"(.*)","fl4":"(.*)","index":"(.*)","index_d":"(.*)","index48":"(.*)","index48_d":"(.*)","index_uv":"(.*)","index48_uv":"(.*)","index_xc":"(.*)","index_tr":"(.*)","index_co":"(.*)"}}"
StringIndex=1
;Debug=1
;------------------------------------------
[MeasureDate_y]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=3

[MeasureDate]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=4

[MeasureWeek]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=5

--[MeterDate_y]
MeasureName=MeasureDate_y
Meter=STRING
X=190
Y=100
FontColor=105,190,255,240
FontSize=9
StringAlign=Right
StringStyle=BOLD
FontFace=黑体
AntiAlias=1
--[MeterDate]
MeasureName=MeasureDate
Meter=STRING
X=190
Y=120
FontColor=105,190,255,240
FontSize=9
StringAlign=Right
StringStyle=BOLD
FontFace=黑体
AntiAlias=1
--[MeterWeek]
MeasureName=MeasureWeek
Meter=STRING
X=190
Y=140
FontColor=105,190,255,240
FontSize=9
StringAlign=Right
StringStyle=BOLD
FontFace=黑体
AntiAlias=1

;--------------------------------
[MeasureCity]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=1


[MeasureWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=8

[MeasureWeatherTempOne]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=9

[MeasureWeatherTempTwo]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=10

[MeasureWeatherTempThr]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=11


;[MeasureWeathertop]
;Measure=Plugin
;Plugin=Plugins\WebParser.dll
;Url=[MeasureWeatherRSS]
;StringIndex=8


;[MeasureWeatherlow]
;Measure=Plugin
;Plugin=Plugins\WebParser.dll
;Url=[MeasureWeatherRSS]
;StringIndex=9


[MeasureWeatherTemp2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=8
IfAboveValue=1
IfAboveAction=!execute [!RainmeterHideMeter MeterIconNA][!RainmeterShowMeter MeterIcon]

[MeasureWeatherDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=12

[MeasureFutureWeatherDescOne]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=13

[MeasureFutureWeatherDescTwo]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=14

[MeasureFutureWeatherDescThr]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=15

[MeasureWeatherIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=16


[MeasureWeatherUVIndexDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=46


[MeasureWeatherWind]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=35


[MeasureWeatherHot]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=42

[MeasureWeatherTravel]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=49

[MeasureWeatherComfort]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=50


;================================================================


[MeterTitle]
MeasureName=MeasureCity
Meter=STRING
X=95
Y=30
FontColor=0,0,0,255
FontSize=27
StringAlign=Left
StringStyle=BOLD
FontFace=黑体
AntiAlias=1


[MeterIconNA]
ImageName=na.png
Meter=IMAGE
X=80
Y=60


[MeterIcon]
MeasureName=MeasureWeatherIcon
Meter=IMAGE
X=5
Y=3
W=100
H=65


;[MeterWeathertop]
;MeasureName=MeasureWeatherTemp
;Meter=STRING
;X=138
;Y=45
;FontColor=0,0,0,255
;StringStyle=BOLD
;FontSize=18
;StringAlign=right
;FontFace=Capture it
;Antialias=1



[MeterWeatherTempShow]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=80
Y=65
FontColor=0,0,0,255
StringStyle=BOLD
FontSize=15
StringAlign=left
FontFace=Capture it
Antialias=1
;Postfix="~"

;[MeterGrad]
;Meter=String
;X=158
;Y=40
;FontColor=#Farbe#
;FontSize=16
;Antialias=1
;StringAlign=LEFT
;StringStyle=BOLD
;FontFace=#Font#
;Text="℃"



[MeterFuture3DaysTitle]
Meter=STRING
X=100
Y=90
FontColor=0,0,0,255
FontSize=12
StringAlign=Right
StringStyle=BOLD
FontFace=#Font#
AntiAlias=1
Text=未来两天:


[MeterFuture3DaysTitleOne]
Meter=STRING
X=7
Y=200
FontColor=0,0,0,255
FontSize=11
StringAlign=Right
StringStyle=BOLD
FontFace=#Font#
AntiAlias=1
Text=


[MeterFuture3DaysTempOne]
MeasureName=MeasureWeatherTempOne
Meter=STRING
X=45r
Y=110
FontColor=0,0,0,255
FontSize=11
StringAlign=Left
FontFace=#Font#
Antialias=1

[MeterFuture3DaysWeatherOne]
MeasureName=MeasureFutureWeatherDescOne
Meter=STRING
X=70r
Y=110
FontColor=0,0,0,255
FontSize=11
StringAlign=Left
FontFace=#Font#
Antialias=1




[MeterFuture3DaysTitleTwo]
Meter=STRING
X=7
Y=188
FontColor=0,0,0,255
FontSize=11
StringAlign=Right
StringStyle=BOLD
FontFace=#Font#
AntiAlias=1
Text=

[MeterFuture3DaysTempTwo]
MeasureName=MeasureWeatherTempTwo
Meter=STRING
X=45r
Y=130
FontColor=0,0,0,255
FontSize=11
StringAlign=Left
FontFace=#Font#
Antialias=1

[MeterFuture3DaysWeatherTwo]
MeasureName=MeasureFutureWeatherDescTwo
Meter=STRING
X=70r
Y=130
FontColor=0,0,0,255
FontSize=11
StringAlign=Left
FontFace=#Font#
Antialias=1






回复

使用道具 举报

签到天数: 36 天

[LV.5]常住居民I

发表于 2012-9-10 16:12:42 | 显示全部楼层
学习了,我也试试!
回复

使用道具 举报

签到天数: 391 天

[LV.9]以坛为家II

发表于 2012-9-10 16:31:26 | 显示全部楼层
啊啊啊啊啊啊啊啊啊啊啊啊啊啊
回复

使用道具 举报

签到天数: 3 天

[LV.2]偶尔看看I

发表于 2012-9-13 20:03:03 | 显示全部楼层
谢谢教程~~~~
回复

使用道具 举报

签到天数: 18 天

[LV.4]偶尔看看III

发表于 2012-9-14 17:34:13 | 显示全部楼层
收藏,必须滴!果断自己搞一个
回复

使用道具 举报

签到天数: 15 天

[LV.4]偶尔看看III

发表于 2012-9-14 21:59:31 | 显示全部楼层
插一个啊阿斯达
回复

使用道具 举报

签到天数: 4 天

[LV.2]偶尔看看I

发表于 2012-9-15 23:22:52 | 显示全部楼层
喜欢喜欢,收藏个
回复

使用道具 举报

签到天数: 13 天

[LV.3]偶尔看看II

发表于 2012-9-16 10:01:53 | 显示全部楼层
初学者,表示看不懂。顶个慢慢学。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点击注册

本版积分规则

快速回复 返回顶部 返回列表