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

QQ登录

只需一步,快速开始

扫一扫,访问微社区

楼主: Geterns

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

  [复制链接]

签到天数: 29 天

[LV.4]偶尔看看III

发表于 2014-10-25 19:39:31 | 显示全部楼层
太专业了看不太懂  给楼主点赞
回复

使用道具 举报

签到天数: 3 天

[LV.2]偶尔看看I

发表于 2014-10-31 06:45:11 | 显示全部楼层
[Rainmeter]
Author=kooyer,Ubuntutux
BackgroundMode=1

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



;Metadata added by RainBrowser
;http://rainmeter.net/RainWiki/index.php?title=Rainmeter_101#.5BMetadata.5D

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

;End of added Metadata

[Variables]
URL=http://www.weather.com.cn/weather1d/101020100.shtml
URL2=http://www.weather.com.cn/weather/101020100.shtml
Font=黑体
Farbe=255,255,255,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=255,255,255,255
FontSize=9
StringAlign=Right
StringStyle=BOLD
FontFace=黑体
AntiAlias=1
--[MeterDate]
MeasureName=MeasureDate
Meter=STRING
X=190
Y=120
FontColor=255,255,255,255
FontSize=9
StringAlign=Right
StringStyle=BOLD
FontFace=黑体
AntiAlias=1
--[MeterWeek]
MeasureName=MeasureWeek
Meter=STRING
X=190
Y=140
FontColor=255,255,255,255
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=105
Y=10
FontColor=255,255,255,255
FontSize=24
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=105
Y=45
FontColor=255,255,255,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=85
FontColor=255,255,255,255
FontSize=12
StringAlign=Right
StringStyle=BOLD
FontFace=#Font#
AntiAlias=1
Text=未来两天:


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


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

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




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

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

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





回复

使用道具 举报

签到天数: 3 天

[LV.2]偶尔看看I

发表于 2014-10-31 06:45:58 | 显示全部楼层
ycoolboy 发表于 2014-10-31 06:45
[Rainmeter]
Author=kooyer,Ubuntutux
BackgroundMode=1

好心人帮忙 我是上海的 这个怎么改 我实在搞不明白
回复

使用道具 举报

签到天数: 2 天

[LV.1]初来乍到

发表于 2014-10-31 09:59:43 | 显示全部楼层
技术贴,看不明白
回复

使用道具 举报

签到天数: 7 天

[LV.3]偶尔看看II

发表于 2014-11-14 16:21:17 | 显示全部楼层
确实看不懂···
回复

使用道具 举报

签到天数: 55 天

[LV.5]常住居民I

发表于 2014-11-18 11:17:18 | 显示全部楼层
必须顶一下子呵
回复

使用道具 举报

签到天数: 5 天

[LV.2]偶尔看看I

发表于 2014-11-28 14:31:49 | 显示全部楼层




---------------------------------------------------------------------------------------------------------------------

yx98946于2014-11-28 14:31补充以下内容:


---------------------------------------------------------------------------------------------------------------------
回复

使用道具 举报

签到天数: 5 天

[LV.2]偶尔看看I

发表于 2014-12-3 16:45:51 | 显示全部楼层
先学习一下,到时得尝试一下制作专属于自己的天气皮肤,^_^
回复

使用道具 举报

签到天数: 7 天

[LV.3]偶尔看看II

发表于 2014-12-9 22:57:27 | 显示全部楼层

技术贴, 非常喜欢,收藏了
回复

使用道具 举报

该用户从未签到

发表于 2014-12-14 10:04:25 | 显示全部楼层

对于我这个新手非常有用。多谢分享了
回复

使用道具 举报

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

本版积分规则

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