이젠 빠르게 넘어가도 될듯 하네요.
날씨스킨은 webparser플러그인을 사용해 날씨정보를 날씨정보사이트에서 가져옵니다.
날씨정보사이트의 지역코드는 대개 동일한 경우가 많으니 지역코드를 검색해서 해당 skin을 수정해 주시면 됩니다. 기타 글씨체, 색상, 간격등등은 이전과 동일하게, 직접 보면서 수정해 주시면 됩니다.
원본은 Dark Rainmeter 테마의 weather skin 입니다.
;=================================================
; Rainmeter configuration file
; Updated April 18, 2009
;
; I owe thanks for:
; Weather by moxamax / garbanzox
;
;=================================================
;[BEGIN CONFIG FILE]==============================
[Rainmeter]
Author=Jeffrey Morley
update=1000
;Metadata added by RainBrowser
;http://rainmeter.net/RainCMS/?q=Rainmeter101_AnatomyOfASkin
[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=
;End of added Metadata
[Variables] <변수정의 : 주석에서와 같이 지역코드를 검색해서 바꾸어 줍니다>
;=================================================
;Please replace your location code of Weather.com below, e.g: Taipei is TWXX0021.
;You can check it on Weather.com or Google.
;And you may also delete "&unit=m" if you prefer the Fahrenheit Scale.
;=================================================
URL=http://xml.weather.com/weather/local/KSXX0026?cc=*&unit=m&dayf=6
Font=Bauhaus-Thin
FontColor=255, 255, 255, 180
FontColor1=255, 255, 255, 250
;=================================================
;[GATHER WEATHER INFO FROM RSS]===================
[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800 <이전에 언급했듯이 webparser에서는 updaterate를 사용합니다. 해당 사이트에 과도한 억세스시도를 미연에 방지해 주기위해 적당한 간격을 설정합니다. 저는 1800초로 설정했습니다.>
Url=#URL#
RegExp="(?siU)
(.*)(.*)
(.*)(.*)
(.*)(.*)
StringIndex=1
IfAboveValue=1
IfAboveAction=!execute [!RainmeterHideMeter MeterIconNA][!RainmeterShowMeter MeterIcon]
;[TODAY]=========================================
[MeasureWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=3
[MeasureWeatherDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=5
[MeasureWeatherIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=7
;[TODAY + 1]=====================================
;tomorrow's weather description, id=18
;tomorrow's day, id=9
;tomorrow's date, id=10, you can redefine the StringIndex value below with the id#
[MeasureWeatherDesc1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=18
[MeasureWeatherDay1]
<오늘+1일의 요일을 받아옵니다. 앞서 본 date-time에서 글자값을 치환하는걸 잘 섞어보면 한글로 요일표현이 가능하겠죠?>
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=9
;tomorrow's Hi-temp, id=12
;tomorrow's Lo-temp, id=14, you can redefine the StringIndex value below with the id#
<주석을 참 잘 달아놓았습니다. 최저온도는 id 14로 정의되어 있으니 첨가하고 싶다면 표시부분에서 수정/첨가해서 사용해도 되도록 잘 만들어 놓았네요.>
[MeasureWeatherTemp1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=12
;tomorrow's weather icon, id=16
[MeasureWeatherIcon1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=16
;[TODAY + 2]=====================================
;D+2, weather description, id=29
;D+2, day of week, id=20
;D+2, date, id=21
[MeasureWeatherDesc2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=29
[MeasureWeatherDay2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=20
;D+2, Hi-temp, id=23
;D+2, Lo-temp, id=25
[MeasureWeatherTemp2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=23
;D+2, weather icon, id=27
[MeasureWeatherIcon2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=27
;[TODAY + 3]=====================================
;D+3, weather description, id=40
;D+3, day of week, id=31
;D+3, date, id=32
[MeasureWeatherDesc3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=40
[MeasureWeatherDay3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=31
;D+3, Hi-temp, id=34
;D+3, Lo-temp, id=36
[MeasureWeatherTemp3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=34
;D+3, weather icon, id=38
[MeasureWeatherIcon3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=38
;[DISPLAY TODAY]=================================
[MeterTemp] <온도표시>
MeasureName=MeasureWeatherTemp
Meter=STRING
X=35
Y=5
FontColor=#FontColor1#
StringStyle=NORMAL
FontSize=15
StringAlign=LEFT
FontFace=#Font#
Antialias=1
Postfix="℃" <원본은 화씨로 되어있을겁니다. ℃로 바꾸어줍니다.>
[MeterDay] <요일표시>
Meter=STRING
X=80
Y=2
FontColor=#FontColor1#
FontSize=10
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#Font#
Antialias=1
Prefix="Today"
[MeterDesc] <날씨상태표시>
MeasureName=MeasureWeatherDesc
Meter=STRING
X=85
Y=14
FontColor=#FontColor1#
FontSize=10
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#Font#
Antialias=1
[MeterIconNA]
ImageName=na.png
Meter=IMAGE
X=1
Y=1
[MeterIcon] <받은 정보의 날씨아이콘 표시>
MeasureName=MeasureWeatherIcon
Meter=IMAGE
X=1
Y=0
;[DISPLAY TODAY + 1]=============================
[MeterTemp1]
MeasureName=MeasureWeatherTemp1
Meter=STRING
X=35
Y=45
FontColor=#FontColor1#
StringStyle=NORMAL
FontSize=15
StringAlign=LEFT
FontFace=#Font#
Antialias=1
Postfix="℃"
[MeterDay1]
MeasureName=MeasureWeatherDay1
Meter=STRING
X=80
Y=42
FontColor=#FontColor#
FontSize=8
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#Font#
Antialias=1
[MeterDesc1]
MeasureName=MeasureWeatherDesc1
Meter=STRING
X=85
Y=54
FontColor=#FontColor#
FontSize=8
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#Font#
Antialias=1
[MeterIcon1]
MeasureName=MeasureWeatherIcon1
Meter=IMAGE
X=1
Y=40
;[DISPLAY TODAY + 2]=============================
[MeterTemp2]
MeasureName=MeasureWeatherTemp2
Meter=STRING
X=35
Y=85
FontColor=#FontColor1#
StringStyle=NORMAL
FontSize=15
StringAlign=LEFT
FontFace=#Font#
Antialias=1
Postfix="℃"
[MeterDay2]
MeasureName=MeasureWeatherDay2
Meter=STRING
X=80
Y=82
FontColor=#FontColor#
FontSize=8
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#Font#
Antialias=1
[MeterDesc2]
MeasureName=MeasureWeatherDesc2
Meter=STRING
X=85
Y=94
FontColor=#FontColor#
FontSize=8
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#Font#
Antialias=1
[MeterIcon2]
MeasureName=MeasureWeatherIcon2
Meter=IMAGE
X=1
Y=80
;[DISPLAY TODAY + 3]=============================
[MeterTemp3]
MeasureName=MeasureWeatherTemp3
Meter=STRING
X=35
Y=125
FontColor=#FontColor1#
StringStyle=NORMAL
FontSize=15
StringAlign=LEFT
FontFace=#Font#
Antialias=1
Postfix="℃"
[MeterDay3]
MeasureName=MeasureWeatherDay3
Meter=STRING
X=80
Y=122
FontColor=#FontColor#
FontSize=8
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#Font#
Antialias=1
[MeterDesc3]
MeasureName=MeasureWeatherDesc3
Meter=STRING
X=85
Y=134
FontColor=#FontColor#
FontSize=8
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#Font#
Antialias=1
[MeterIcon3]
MeasureName=MeasureWeatherIcon3
Meter=IMAGE
X=1
Y=120
댓글 없음:
댓글 쓰기