It is currently April 20th, 2024, 5:07 am

Update/Redraw meter

Get help with creating, editing & fixing problems with skins
Zaragan
Posts: 58
Joined: January 10th, 2015, 3:14 pm

Update/Redraw meter

Post by Zaragan »

I have a meter calling a webparser on github and i want to update the meter like every 5 or 10 minutes so when i made any changes on github the meter updates with the new information!!

Code: Select all

[Rainmeter]
Update=1000
Background=#@#\Images\Background.png
BackgroundMode=3
BackgroundMargins=0,34,0,14

[Metadata]
Name=test
Author=test
Information=test.
License=test
Version=test

[Variables]
@includeSettings=#@#\Options\Settings.inc
@includeStyles=#@#\Options\Styles.inc

[measuretest]
Measure=Plugin
Plugin=WebParser.dll
Url=https://github.com/Zaragan/Ilustro-Test/blob/master/README.md
UpdateRate=1000
RegExp="(?siU)<p>:-(.*)</p>"
StringIndex=1
Substitute="":"N/A"

[meterTitle]
Meter=STRING
MeterStyle=styleTitle
X=105
Y=12
W=190
H=18
Text="Test"

[RefreshButton]
Meter=Button
X=168
Y=14
ButtonImage=#@#Images\Refresh.png
ButtonCommand=!Refresh
ToolTipText="#Refresh#"

[CloseButton]
Meter=Button
X=185
Y=14
ButtonImage= #@#Images\Close.png
ButtonCommand=!DeactivateConfig
ToolTipText="#Hideskin#"

[meterTest]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTest
X=10
Y=40
W=190
H=14
Thank you guys!!
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: Update/Redraw meter

Post by fonpaolo »

You must update WebParser using CommandMeasure (the last part at the bottom).
If you need a read after x minutes, you can use a Calc measure and the command above, change UpdateRate, click a button...
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Update/Redraw meter

Post by jsmorley »

fonpaolo wrote:You must update WebParser using CommandMeasure (the last part at the bottom).
If you need a read after x minutes, you can use a Calc measure and the command above, change UpdateRate, click a button...
Or just set UpdateRate properly on the WebParser parent measure... ;-)
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: Update/Redraw meter

Post by fonpaolo »

jsmorley wrote:Or just set UpdateRate properly on the WebParser parent measure... ;-)
Yes, as I said, but why not give some more alternatives? ;-) :lol: