Code: Select all
[Rainmeter]
Author=Haicim
Update=2000
BackgroundMode=1
[Metadata]
Name=Unblock-Us Updater
Description=Updates unblock-us.com account with current IP address
Instructions=Edit the .INI and change EMAIL & PASS variables
Version=0.1
[Variables]
EMAIL=someone@address.com
PASS=password123
skin.Style=Horizontal
@Include=#ROOTCONFIGPATH#SETTINGS\Variables.inc
STATUS="-"
ICON="icon1"
; Measures
[Source]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1200
URL=https://api.unblock-us.com/login?#EMAIL#:#PASS#
RegExp=(?si)(.*)
StringIndex2=1
StringIndex=1
IfMatch=Active
IfMatchAction=!execute [!RainmeterSetVariable STATUS %1], [!RainmeterSetVariable ICON "icon0"]
IfNotMatchAction=!execute [!RainmeterSetVariable STATUS %1], [!RainmeterSetVariable ICON "icon1"]
IfMatchMode=1
DynamicVariables=1
Substitute="active":"Active","":"-","not_found":"Not Found"
; STYLES ======================================
@Include2=#ROOTCONFIGPATH#SETTINGS\Style#skin.Style#.inc
; Meters
[sLine]
H=32
[Line]
Meter=IMAGE
MeterStyle=sLine
[Icon]
Meter=IMAGE
MeterStyle=sIcon
ImageName="#ICON#.png"
DynamicVariables=1
UpdateDivider=1
[Title]
Meter=STRING
MeterStyle=sTitle
Text="Unblock-Us"
y=8
[SubtitleStatus]
Meter=STRING
MeterStyle=sSubtitle
MeasureName=Source
Text=#STATUS#
x=195
y=8
w=115
StringAlign=Right
DynamicVariables=1
; Gap
[Gap]
Meter=IMAGE
MeterStyle=sGap