新人求助贴,不知道会不会删
rainmeter吧
全部回复
仅看楼主
level 2
KAKAMI😜 楼主
最近在社区上看到一款挺好看的天气插件,但下完之后不会改,求大佬帮忙,是的,连城市代码在哪都看不懂
2017年10月29日 14点10分 1
level 2
KAKAMI😜 楼主
这两天去弄手机号了,望见谅,以下是代码:
; 代码行开始节点 ;(分号) 代表该行是被注释掉的,不会产生作用,仅仅只是说明。
; ---------------------------------------------------------------------------
[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分 3
level 2
KAKAMI😜 楼主
;--获取当天天气其他信息(日出、日落时间,降水概率,气温范围)及后六天天气预报
[MeasureWeatherToday]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=file://
#CURRENTPATH#
\DownloadFile\WeatherForecast.txt
RegExp=(?siU).*"astro":{"mr":".*","ms":".*","sr":"(.*)","ss":"(.*)"},"cond":{"code_d":"(.*)","code_n":"(.*)","txt_d":"(.*)","txt_n":"(.*)"},"date":"(.*)","hum":".*","pcpn":".*","pop":"(.*)","pres":".*","tmp":{"max":"(.*)","min":"(.*)"},"uv":".*","vis.*
;--获取后六天的天气预报信息
[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=file://
#CURRENTPATH#
\DownloadFile\WeatherForecast.txt
RegExp=(?siU).*"astro":{.*"cond".*"cond":{"code_d":"(.*)","code_n":"(.*)","txt_d":"(.*)","txt_n":"(.*)"},"date":"(.*)".*"tmp":{"max":"(.*)","min":"(.*)"}.*"cond":{"code_d":"(.*)","code_n":"(.*)","txt_d":"(.*)","txt_n":"(.*)"},"date":"(.*)".*"tmp":{"max":"(.*)","min":"(.*)"}.*"cond":{"code_d":"(.*)","code_n":"(.*)","txt_d":"(.*)","txt_n":"(.*)"},"date":"(.*)".*"tmp":{"max":"(.*)","min":"(.*)"}.*
;--获取空气质量
[MeasureAirQuality]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=file://
#CURRENTPATH#
\DownloadFile\\Weather.txt
RegExp=(?siU).*city":{"aqi":"(.*)","co":".*","no2":".*","o3":".*","pm10":".*","pm25":"(.*)","qlty":"(.*)","so2":".*"}},"basic.*
;--基本信息---------------------------------------------------------------
;--国家
[MeasureCnty]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureCityInfo]
StringIndex=2
;--城市
[MeasureCity]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureCityInfo]
StringIndex=1
;--更新时间(当地时间,非UTC时间)
[MeasureUpdateTime]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureUpdateInfo]
StringIndex=1
;--经度(未启用)
;[MeasureCityLon]
;Measure=Plugin
;Plugin=Plugins\WebParser.dll
;Url=[MeasureCityInfo]
;StringIndex=4
;--纬度(未启用)
;[MeasureCityLat]
;Measure=Plugin
;Plugin=Plugins\WebParser.dll
;Url=[MeasureCityInfo]
;StringIndex=3
;--目前天气状况-----------------------------------------------------------
;--天气代码
[MeasureConCode]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherNow]
StringIndex=1
;--天气描述
[MeasureConTxt]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherNow]
StringIndex=2
;--体感温度(℃)
[MeasureConFl]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherNow]
StringIndex=3
;--相对湿度(%)
[MeasureConHum]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherNow]
StringIndex=4
;--降水量(mm)
[MeasureConPcpn]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherNow]
StringIndex=5
;--气压(Pa)(未启用)
;[MeasureConPres]
;Measure=Plugin
;Plugin=Plugins\WebParser.dll
;Url=[MeasureWeatherNow]
;StringIndex=6
;--温度(℃)
[MeasureConTmp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherNow]
StringIndex=7
;--能见度(km)
[MeasureConVis]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherNow]
StringIndex=8
;--风向(东南西北方向,非角度)
[MeasureConWindDir]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherNow]
StringIndex=9
;--风力(风力级数)
[MeasureConWindSc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherNow]
StringIndex=10
;--风速(km/h)
[MeasureConWindSpd]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherNow]
StringIndex=11
2017年11月01日 07点11分 4
level 2
KAKAMI😜 楼主
大佬,这个时间和具体时间不符怎么办
2017年11月02日 12点11分 8
1