level 2
这两天去弄手机号了,望见谅,以下是代码:
; 代码行开始节点 ;(分号) 代表该行是被注释掉的,不会产生作用,仅仅只是说明。
; ---------------------------------------------------------------------------
[Rainmeter]
; Rainmeter(头部节点),这部分包含全局设置,可以用来改变Rainmeter行为。
; --------------------------------------------------------------------
; Meters的更新时间,单位是毫秒,默认是1000即1秒。
Update=1000
; 背景模式,0-Background定义的图片。,1-透明,2-纯色,3-缩放的图片。默认1
BackgroundMode=0
Background=wnd.png
; 如果BackgroundMode设置为2的时候,此项定义背景色及第二渐变颜色。
SolidColor=0,0,0,0
;SolidColor2=0,0,0,0
BevelType=0
; 纯背景色边缘特效,0无,1凸起,2凹陷
[Metadata]
; Metadata(元数据节点),包含皮肤的基本信息。
; -------------------------------------------
Name=SimpleWeather
; 皮肤名称|副标题
Author=Simple
; 作者
Information=实时天气及未来三天天气预报|Rainmeter天气皮肤原创作品|感谢和风天气提供的免费天气API|2016年11月19日
; 皮肤描述信息
License=CC BY–NC-SA Simple 3.0
; 皮肤许可
Version=2.2
; 皮肤版本号
[Variables]
; Variables(变量节点),之后要用时用
#包围来引用(如#
变量名#)。
; -------------------------------------------------------------
TextSize=10
; 字体大小变量设置为10号字
TextColor=65, 221, 255, 255
; 字体颜色变量
TextFont=黑体
;--天气预报----------------------------------------------------------CN---
CityID=CN101210101
; 城市编码,文件夹中EXCEL文件可以查询、修改,可以通过#CityID#调用。
Key=a0be8923124c4c87b020e70d23d18157
; 授权码,可以通过#Key#调用。(此处为我私人key,临时供大家使用,如果超出日访问次数后,便不会再共享,建议自己注册账号)
; 注册网址:http://console.heweather.com/register(注册后会提供私人key,每天3000次访问)
WeatherUrl_Now=https://free-api.heweather.com/v5/now?city=#CityID#&key=#Key#
WeatherUrl_Forecast=https://free-api.heweather.com/v5/forecast?city=#CityID#&key=#Key#
WeatherUrl_Weather=https://free-api.heweather.com/v5/weather?city=#CityID#&key=#Key#; -------------------------------------------------------------------------/
;--------------------------------------------------------------------------------
;---- Styles 样式管理模块。------------------------------------------------------
;--------------------------------------------------------------------------------
[StyleInfoText]
FontSize=11
FontFace=
#TextFont#
FontColor=
#TextColor#
StringAlign=RightCenter
SolidColor=0,0,0,100
AntiAlias=1
DynamicVariables=1
[StyleForcastText]
FontSize=11
FontFace=
#TextFont#
FontColor=
#TextColor#
SolidColor=0,0,0,50
AntiAlias=1
DynamicVariables=1
;--------------------------------------------------------------------------------
;---- MEASURES 皮肤的信息控件。用于从电脑或互联网上收集信息。--------------------
;--------------------------------------------------------------------------------
;--离线缓存天气信息-------------------------------------------------------
[MeasureWeatherNowDown]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=
#WeatherUrl_Now#
UpdateDivider=3000
Download=1
DownloadFile=WeatherNow.txt
[MeasureWeatherForecastDown]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=
#WeatherUrl_Forecast#
UpdateDivider=3000
Download=1
DownloadFile=WeatherForecast.txt
[MeasureWeatherDown]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=
#WeatherUrl_Weather#
UpdateDivider=3000
Download=1
DownloadFile=Weather.txt
;--天气API接口------------------------------------------------------------
;--获取当前城市基本信息
[MeasureCityInfo]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=file://
#CURRENTPATH#
\DownloadFile\WeatherNow.txt
RegExp=(?siU).*basic":{"city":"(.*)","cnty":"(.*)","id":".*","lat":"(.*)000","lon":"(.*)000","update.*
;--获取信息更新时间(24小时制)
[MeasureUpdateInfo]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=file://
#CURRENTPATH#
\DownloadFile\WeatherNow.txt
RegExp=(?siU).*"update":{"loc":".* (.*)","utc":".*"}},"now.*
;--获取实况天气信息
[MeasureWeatherNow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=file://
#CURRENTPATH#
\DownloadFile\WeatherNow.txt
RegExp=(?siU).*"now":{"cond":{"code":"(.*)","txt":"(.*)"},"fl":"(.*)","hum":"(.*)","pcpn":"(.*)","pres":"(.*)","tmp":"(.*)","vis":"(.*)","wind":{"deg":".*","dir":"(.*)","sc":"(.*)","spd":"(.*)"}},"status":".*"}]}
2017年11月01日 07点11分

