I use ddwrt for my router and it has a nifty page for giving me interface statistics
the output is essentially thus: (note the nice lack of html garbage)
Code: Select all
Fri Jun 17 10:41:47 UTC 2011 vlan2:3474054396 10373483 0 0 0 0 0 0 310577720 4631854 0 0 0 0 0 0
what I want is a meter or bar or something to display bits per second for both.
What I have is this:
Code: Select all
;[BEGIN CONFIG FILE]==============================
[Variables]
URL="http://10.1.1.1/fetchif.cgi?vlan2"
FontColor=255, 255, 255, 255
[MeasureWebsite]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=100
Url=#URL#
RegExp="(?siU)vlan2:(.*) (.*) (.*)"
Debug=1
[MeasureIfIn]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWebsite]
StringIndex=1
[MeasureIfOut]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWebsite]
StringIndex=2
[MeterBackground]
Meter=IMAGE
X=1
Y=1
H=220
W=300
SolidColor=0,0,0,255
[MeterIfIn]
MeasureName=MeasureIfIn
Meter=STRING
X=2
Y=2
FontColor=#FontColor#
FontSize=12
StringAlign=LEFT
Antialias=1
Prefix="Bits In: "
[MeterIfOut]
MeasureName=MeasureIfOut
Meter=STRING
X=2
Y=20
FontColor=#FontColor#
FontSize=12
StringAlign=LEFT
Antialias=1
Prefix="Bits Out: "
I have tried using dynamicVariables, setting global variables, using the calc function... But essentially I am baffled by the way rainmeter code functions (being an imperative language programmer). Any help would be greatly appreciated.
Thank you.