[Rainmeter]
UpdateRate=5000


;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]
FontName=Trebuchet MS
BlackFont=0,0,0,255
WhiteFont=255,255,255
BarColor1=140,140,140,200
BarColor2=20,20,20,255
FontColor1=0, 178, 238, 255
WeatherCode=INXX0038
URL=http://xml.weather.com/weather/local/**enter location code here***?cc=*&unit=m&dayf=6
;Please replace your location code of Weather.com below, e.g: Taipei is 
;TWXX0021. If you're in the U.S., your zip should be #####.
;And you may also add "&unit=m" in between * and & if you prefer the
;Fahrenheit Scale. Look at the example below.
;cc=*&unit=m&dayf=6




;-----------------



[Filter]
Meter=IMAGE
SolidColor=0,0,0,50
X=20
Y=0
H=150
W=170

[Title]
Meter=String
X=25
Y=5
FontColor=#FontColor1#
FontSize=8
FontFace=#FontName#
StringStyle=Normal
StringAlign=LEFT
AntiAlias=1
Text="New Delhi, India "

;---------------------------------
                         Weather
;---------------------------------


[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3600
Url=#URL#
RegExp="(?siU)<weather ver="(.*)">(.*)<tmp>(.*)</tmp>(.*)<t>(.*)</t>(.*)<icon>(.*)</icon>(.*)<day d="1" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)<day d="2" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)<day d="3" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)"
StringIndex=1
IfAboveValue=1
IfAboveAction=!execute [!RainmeterHideMeter MeterIconNA][!RainmeterShowMeter MeterIcon]
;Debug=1
;--------------------------------


[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
;-------------------------

;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#
[MeasureWeatherDate1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=10

;tomorrow's Hi-temp, id=12
;tomorrow's Lo-temp, id=14, you can redefine the StringIndex value below with the id#
[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
;-------------------------

;D+2, weather description, id=29
;D+2, day of week, id=20
;D+2, date, id=21
[MeasureWeatherDate2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=21

;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

;-------------------------

;D+3, weather description, id=40
;D+3, day of week, id=31
;D+3, date, id=32
[MeasureWeatherDate3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=32

;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

;--------------------------------
                Current Weather
;--------------------------------


[MeterTemp]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=136
Y=37
FontColor=#FontColor1#
StringStyle=NORMAL
FontSize=20
StringAlign=CENTER
StringStyle=BOLD
FontFace=#FontName#
Antialias=1
Postfix=""

[MeterDesc]
MeasureName=MeasureWeatherDesc
Meter=STRING
X=110
Y=70
FontColor=#FontColor1#
FontSize=10
StringAlign=CENTER
StringStyle=BOLD
FontFace=#FontName#
Antialias=1

[MeterIconNA]
ImageName=na.png
Meter=IMAGE
X=68
Y=35

[MeterIcon]
MeasureName=MeasureWeatherIcon
Meter=IMAGE
X=68
Y=35
H=37
W=37
Hidden=1
LeftMouseDownAction=!Execute [!RainmeterRefresh][!RainmeterRedraw]
LeftMouseUpAction=!Execute [!RainmeterRedraw]

;-----------------------------
             Next Day Weather
;-----------------------------


[MeterTemp1]
MeasureName=MeasureWeatherTemp1
Meter=STRING
X=64
Y=121
FontColor=0, 178, 238, 150
StringStyle=NORMAL
FontSize=10
StringAlign=CENTER
FontFace=#FontName#
Antialias=1
Postfix=""

[MeterDate1]
MeasureName=MeasureWeatherDate1
Meter=STRING
X=49
Y=100
FontColor=0, 178, 238, 150
FontSize=10
StringAlign=CENTER
StringStyle=BOLD
FontFace=#FontName#
Antialias=1

[MeterIcon1]
MeasureName=MeasureWeatherIcon1
Meter=IMAGE
X=24
Y=118
H=22
W=22


;--------------------------------
         Day After Next  Weather
;--------------------------------


[MeterTemp2]
MeasureName=MeasureWeatherTemp2
Meter=STRING
X=122
Y=121
FontColor=0, 178, 238, 150
StringStyle=NORMAL
FontSize=10
StringAlign=CENTER
FontFace=#FontName#
Antialias=1
Postfix=""

[MeterDate2]
MeasureName=MeasureWeatherDate2
Meter=STRING
X=107
Y=100
FontColor=0, 178, 238, 150
FontSize=10
StringAlign=CENTER
StringStyle=BOLD
FontFace=#FontName#
Antialias=1

[MeterIcon2]
MeasureName=MeasureWeatherIcon2
Meter=IMAGE
X=82
Y=118
H=22
W=22


;----------------------------------
         2 Days After Next Weather
;----------------------------------


[MeterTemp3]
MeasureName=MeasureWeatherTemp3
Meter=STRING
X=178
Y=121
FontColor=0, 178, 238, 150
StringStyle=NORMAL
FontSize=10
StringAlign=CENTER
FontFace=#FontName#
Antialias=1
Postfix=""

[MeterDate3]
MeasureName=MeasureWeatherDate3
Meter=STRING
X=165
Y=100
FontColor=0, 178, 238, 150
FontSize=10
StringAlign=CENTER
StringStyle=BOLD
FontFace=#FontName#
Antialias=1

[MeterIcon3]
MeasureName=MeasureWeatherIcon3
Meter=IMAGE
X=140
Y=118
H=22
W=22



;-----------------------------
          Latitude/Longitude
;-----------------------------

[MeasureLocation]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=http://rainmeter.accu-weather.com/widget/rainmeter/weather-data.asp?Location=#WeatherCode#&metric=1
RegExp="(?siU)<city>(.*)</city>.*<lat>(.*)</lat>.*<lon>(.*)</lon>"
StringIndex=1
UpdateRate=86400
Debug=0


[MeasureLat]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureLocation]
StringIndex=2

[MeasureLon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureLocation]
StringIndex=3

[MeasureIP]
Measure=Plugin
Plugin=Plugins\SysInfo.dll
SysInfoType=IP_ADDRESS
SysInfoData=0

[MeterIP]
Meter=STRING
MeasureName=MeasureLat
MeasureName2=MeasureLon
X=190
Y=5
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#FontColor1#
FontSize=8
FontFace=#FontName#
Text="%1, %2"
AntiAlias=1
