[Rainmeter]
Author=poiru
AppVersion=1002000
Update=1000

[Metadata]
Name=Get Weather Location Code
Version=1.0.0
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0

[GetCode]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1000
Url=http://iplocationtools.com/index.php
RegExp="(?sU)Weather Station Code.*align=\"left\">(.+)<.*Weather Station Name.*align=\"left\">(.+)<"
StringIndex=1
FinishAction=!execute ["#CURRENTPATH#getwlc.exe" "/code=[GetCode]" "/city=[GetCity]" "/file=Variables1.txt" "/sec=Variables" "/val=WeatherCodeLocation" "/bang=#PROGRAMPATH#Rainmeter.exe !execute [!RainmeterRefresh i3 bar\Weather]"][!RainmeterDeactivateConfig]

[GetCity]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[GetCode]
StringIndex=2

[DummyMeter]
Meter=IMAGE