単純な天気の設定をメモ
1.地域の天気コード(アドレス)を調べる
2.赤字の部分のURLを変更する
3.華氏 摂氏の変更 ℃表示にする
1.からですが、http://weather.yahoo.com/で調べます。
「Enter city or zip code:」に、郵便番号か都道府県名、市名、区名のどれかを入力すれば、該当の天気が表示されます。
F表示なので、℃表示に変更します。右上にFと℃の切り替えがあります。
RSSを押して、表示されるアドレスをコピーして、メモ帳などで、メモしておきます。
2.下記の赤字の部分に、メモしたアドレスをコピーします。
3.このままでは、表示がないのままなので、表示を℃に設定します。両方共に同じです。
Postfix="ー"
-を℃に変更
Postfix="℃"
Rainmeter - Encoded v1.2.2
Description=The default weather is set to Los Angeles (code=USCA1192), to get your Weather Code visit (weather.yahoo.com)
Instructions=Type in your Zip Code, click the RSS button, your code will be in the address bar.
Version=1000
Tags=
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Variant=
Preview=
[Variables]
@include=#SKINSPATH#Encoded\Variables\Default.inc
[Styles]
@include=#SKINSPATH#Encoded\Variables\Styles.inc
;--------------------------------
[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=http://weather.yahooapis.com/forecastrss?p=USCA1192&u=f
RegExp=(?siU)<link.*>(.*)</link>.*city=\"(.*)\".*sunrise=\"(.*)\".*sunset=\"(.*)\".*<image>.*<url>(.*)</url>.*<title>.*:.*m .*(.*)</title>.*lat>(.*)<.*long>(.*)<.*yweather:condition.*text=\"(.*)\".*code=\"(.*)\".*temp=\"(.*)\".*yweather:forecast.*day=\"(.*)\".*high=\"(.*)\".*code=\"(.*)\".*yweather:forecast.*day=\"(.*)\".*high=\"(.*)\".*code=\"(.*)\".*
StringIndex=1
; The default weather is set to Los Angeles (code=USCA1192), to get your Weather Code visit (weather.yahoo.com)
; type in your Zip Code, click the RSS button, your code will be in the address bar.
; At the end of the weather URL above you'll see "f" for Fahrenheit, change it to "c" for Celsius.
[MeasureWeatherDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=9
[MeasureWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=11
----省略----
;[Temp]
;MeasureName=MeasureWeatherTemp
;Meter=STRING
;MeterStyle=whtboldr
;FontSize=23
;X=65
;Y=18
;Postfix="ー"
Rainmeter - Elegance 2
[Rainmeter]
Author=lilshizzy@gmail.com
Update=1000
MouseOverAction=!Execute [!RainmeterShowMeter Desc][!RainmeterHideMeter TEMP2][!RainmeterHideMeter Icon][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter Desc][!RainmeterShowMeter TEMP2][!RainmeterShowMeter Icon][!RainmeterRedraw]
MiddleMouseDownAction=!RainmeterActivateConfig #CURRENTCONFIG# weather_2.ini
@include=#SKINSPATH#Elegance2\Config\Fonts.inc
[Metadata]
Name=Elegance 2 - Weather
Config=
Description=
Instructions=
Version=1000
Tags=
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Variant=
Preview=
[Variables]
@include=#SKINSPATH#Elegance2\Config\Default.inc
[Styles]
@include=#SKINSPATH#Elegance2\Config\Styles.inc
;--------------------------------
[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=http://weather.yahooapis.com/forecastrss?p=#WeatherCode#&u=#fc#
RegExp=(?siU)<link.*>(.*)</link>.*city=\"(.*)\".*sunrise=\"(.*)\".*sunset=\"(.*)\".*<image>.*<url>(.*)</url>.*<title>.*:.*m .*(.*)</title>.*lat>(.*)<.*long>(.*)<.*yweather:condition.*text=\"(.*)\".*code=\"(.*)\".*temp=\"(.*)\".*yweather:forecast.*day=\"(.*)\".*high=\"(.*)\".*code=\"(.*)\".*yweather:forecast.*day=\"(.*)\".*high=\"(.*)\".*code=\"(.*)\".*
StringIndex=1
; The default weather is set to Los Angeles (code=USCA1192), to get your Weather Code visit (weather.yahoo.com)
; type in your Zip Code, click the RSS button, your code will be in the address bar.
; At the end of the weather URL above you'll see "f" for Fahrenheit, change it to "c" for Celsius.
[MeasureWeatherDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=9
[MeasureWeatherIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=10
[MeasureWeatherIconMod]
Measure=CALC
Formula=8800000 + (MeasureWeatherIcon*1000) + 99
Substitute="88":"#SKINSPATH#Elegance2\Config\Images\Weather\","099":".png"
[MeasureWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=11
----省略----
[TEMP2]
MeasureName=MeasureWeatherTemp
Meter=STRING
MeterStyle=Sys1
X=56r
Y=22r
Postfix="ー"
他に設定もできるようですが、シンプルにしてみました。
0 件のコメント:
コメントを投稿