It is currently April 19th, 2024, 10:14 am

Net measure with slower Update

Tips and Tricks from the Rainmeter Community
User avatar
Nightblade
Posts: 20
Joined: August 21st, 2012, 5:17 am

Net measure with slower Update

Post by Nightblade »

Hi, I couldn't find out how to do this by googling, so I'm sharing the solution here for others.

If you want to update your network traffic skin less often than 1000ms (the default/recommended rate) you'll need to make a Calc measure for both NetIn and NetOut measures that divides each of them by your Update rate in seconds. (If you want to make graphs from those Calc measures, you'll need to provide an appropriate MinValue and MaxValue too.)

For example, if you want Update=2000 you must divide the source measure by 2:

Code: Select all

[Rainmeter]
Update=2000
BackgroundMode=2
SolidColor=0,0,0,255

[MeasureNetIn]
Measure=NetIn

[MeasureNetOut]
Measure=NetOut

[MeasureNetInCalc]
Measure=Calc
Formula=(MeasureNetIn/2)

[MeasureNetOutCalc]
Measure=Calc
Formula=(MeasureNetOut/2)

[MeterText]
Meter=String
StringAlign=Center
MeasureName=MeasureNetInCalc
MeasureName2=MeasureNetOutCalc
X=90
Y=5
W=180
H=20
FontColor=255,255,255,255
NumOfDecimals=1
AutoScale=1
Text="In: %1B, Out: %2B"