It is currently December 12th, 2019, 8:23 pm

Max/Min Internet Up/Down - not sure what to do

Help with creating, editing & fixing problems with skins
User avatar
Mor3bane
Posts: 655
Joined: May 7th, 2016, 7:32 am

Re: Max/Min Internet Up/Down - not sure what to do

Mor3bane » December 3rd, 2019, 1:45 pm

also this i think is the correct window pane:
https://forum.rainmeter.net/viewtopic.php?t=4555#p30998
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself
User avatar
balala
Rainmeter Sage
Posts: 9258
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Max/Min Internet Up/Down - not sure what to do

balala » December 3rd, 2019, 7:15 pm

Mor3bane wrote:
December 3rd, 2019, 1:42 pm

Code: Select all

[Rainmeter]
Update=400
AccurateText=1
DynamicVariables=1
DragGroup=one

[Variables]
inusage=Val7
outusage=Val8
incurrent=0
intotal=0
outcurrent=0
outtotal=0
m=>
n=>

;==================================Styles=========================

[TextStyle]
FontFace=Segoe UI
FontSize=14
FontColor=255,255,255,255
AntiAlias=1

[TextStyle1]
FontFace=Segoe UI
FontSize=14
FontColor=255,255,255,255
AntiAlias=1
StringStyle=Bold

[AllStyle]
FontSize=14
FontWeight=100
FontColor=255,255,255,255
AntiAlias=1
DynamicVariables=1

[RightStyle]
StringAlign=Right

;==================================Measures=========================

[MeasureNetIn]
Measure=NetIn
updatedivider=10

[MeasureNetOut]
Measure=NetOut
updatedivider=10

[MeasureNetInC]
Measure=NetIn
Cumulative=1

[MeasureNetOutC]
Measure=NetOut
Cumulative=1

;===================================Calculations====================

[ValK]
updatedivider=-1
Measure=Calc
Formula=2048

[ValIn]
Measure=Calc
DynamicVariables=1
Formula=MeasureNetIn/1.05

[MeasureIN]
Measure=Calc
Formula=ValK > [ValIn] ? 0 : ValIn
DynamicVariables=1
IfAboveValue=10241
IfAboveAction=!SetVariable NetDC 100,255,100,255
IfBelowValue=10240
IfBelowAction=!SetVariable NetDC 255,255,255,255

[ValOut]
Measure=Calc
DynamicVariables=1
AverageSize=#avg#
Formula=MeasureNetOut/1.05

[MeasureNetInCumulative]
Measure=Calc
Formula=MeasureNetInC/6

[MeasureNetOutCumulative]
Measure=Calc
Formula=MeasureNetOutC/6

[MeasureOUT]
Measure=Calc
Formula=ValK > [ValOut] ? 0 : ValOut
DynamicVariables=1
IfAboveValue=1025
IfAboveAction=!SetVariable NetUC 100,100,255,255
IfBelowValue=1024
IfBelowAction=!SetVariable NetUC 255,255,255,255

[MeasureIN2]
Measure=Calc
Formula=MeasureIN
DynamicVariables=1

[MeasureOUT2]
Measure=Calc
Formula=MeasureOUT
DynamicVariables=1

[MeasureUpMax]
Measure=Calc
Formula=( Max ( MeasureUpMax, MeasureOUT2 ))

[MeasureUpMin]
Measure=Calc
Formula=MeasureUpMin #m# MeasureOUT2 ? MeasureUpMin : MeasureOUT2
DynamicVariables=1

[MeasureDnMax]
Measure=Calc
Formula=( Max ( MeasureDnMax, MeasureIN2 ))

[MeasureDnMin]
Measure=Calc
Formula=MeasureDnMin #n# MeasureIN2 ? MeasureDnMin : MeasureIN2
DynamicVariables=1

[SwitchUp]
Measure=Calc
Formula=0 < MeasureOUT2 ? 1 : 0
IfAboveValue=0
IfAboveAction=[!SetVariable m <]

[SwitchDn]
Measure=Calc
Formula=0 < MeasureIN2 ? 1 : 0
IfAboveValue=0
IfAboveAction=[!SetVariable n <]

[Val5]
updatedivider=-1
Measure=Calc
Formula=0

[Val6]
updatedivider=-1
Measure=Calc
Formula=1

;=======================================Text Meters=================

[MeterTextSpeed]
UpdateDivider=-1
Meter=String
X=1115
Y=-3
MeterStyle=TextStyle1
StringAlign=right
Text="Speed"

[MeterTextMax]
UpdateDivider=-1
Meter=String
X=1155
Y=-3
MeterStyle=TextStyle1
StringAlign=left
Text="Maximum"

[MeterTextMin]
UpdateDivider=-1
Meter=String
X=1266
Y=-3
MeterStyle=TextStyle1
StringAlign=left
Text="Minimum"

[MeterTextUP]
Meter=String
X=922
Y=20
StringAlign=left
Text="UP"
FontColor=#NetUC#
DynamicVariables=1
FontSize=14
FontColor=255,255,255,255
AntiAlias=1
StringStyle=Bold

[MeterTextDN]
Meter=String
X=922
Y=40
StringAlign=left
Text="DN"
FontColor=#NetDC#
DynamicVariables=1
FontSize=14
FontColor=255,255,255,255
AntiAlias=1
StringStyle=Bold

[UpSpeed]
Meter=String
updatedivider=1
MeasureName=MeasureOUT2
X=1145
Y=17
StringAlign=right
MeterStyle=TextStyle
NumOfDecimals=2
AutoScale=1
Text="%1Bps"

[TextUpMin]
Meter=String
updatedivider=1
MeasureName=MeasureUpMin
X=1365
Y=17
MeterStyle=TextStyle
StringAlign=right
NumOfDecimals=2
AutoScale=1
Text=%1B

[TextUpMax]
updatedivider=1
Meter=String
MeasureName=MeasureUpMax
X=1255
Y=17
MeterStyle=TextStyle
StringAlign=right
NumOfDecimals=2
AutoScale=1
Text=%1B
DynamicVariables=1

[DnSpeed]
Meter=String
updatedivider=1
MeasureName=MeasureIN2
X=1145
Y=37
StringAlign=right
MeterStyle=TextStyle
NumOfDecimals=2
AutoScale=1
Text="%1Bps"

[DnData]
Meter=String
updatedivider=1
MeasureName=MeasureDnMin
X=1365
Y=37
MeterStyle=TextStyle
StringAlign=right
NumOfDecimals=2
AutoScale=1
Text=%1B

[DnSession]
updatedivider=1
Meter=String
MeasureName=MeasureDnMax
X=1255
Y=37
MeterStyle=TextStyle
StringAlign=right
NumOfDecimals=2
AutoScale=1
Text=%1B

;======================================End Text=====================

;======================================Connectivity=================<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

[MeasureInternetConnect]
Measure=Plugin
Plugin=CheckNet
ConnectionType=Internet
Disabled=0
Substitute="^1$":"CONNECTED","^-1$":"OFF LINE"
RegExpSubstitute=1

[MeterTextConnect]
Meter=String
MeasureName=MeasureInternetConnect
Fontsize=20
FontFace=Astronaut
AntiAlias=1 
StringAlign=Center
X=1024
Y=60
InlineSetting=Color | #Orange#
InlinePattern=(?i)^OFF Line
StringAlign=Right
FontColor=105,255,105,255

[MeasureType]
Measure=Plugin
Plugin=SysInfo
SysInfoType=ADAPTER_TYPE

[MeterType]
Meter=String
MeasureName=MeasureType
Fontsize=20
FontFace=Astronaut
InlineSetting=Case | UPPER
AntiAlias=1 
StringAlign=Left
FontColor=105,255,105,255
X=1195
Y=60
Text=%1
LeftMouseDownAction=
DynamicVariables=1

;=====================================Lines=========================

[MeterGraph2]
Meter=Line
MeasureName=MeasureOUT2
MeasureName2=MeasureIN2
X=0
Y=1
H=100
W=92
LineCount=2
LineWidth=4
LineColor=75,75,255,255
LineColor2=75,255,75,255
Autoscale=1
AntiAlias=1
UpdateDivider=5
TransformationMatrix=10; 0; 0; 1; 0; 0
TransformStroke=Fixed

;=========================================Boxes=====================

[LowerHoriz]
UpdateDivider=-1
Meter=Line
MeasureName=Val5
X=0
Y=102
H=1
W=1366
LineColor=255,255,255,255

[TopLine]
UpdateDivider=-1
Meter=Line
MeasureName=Val5
X=0
Y=0
H=1
W=1366
LineColor=255,255,255,255

[Line1]
UpdateDivider=-1
Meter=Line
MeasureName=Val5
X=911
Y=-79
H=100
W=466
LineColor=255,255,255,155

[Line2]
UpdateDivider=-1
Meter=Line
MeasureName=Val5
X=911
Y=-59
H=100
W=466
LineColor=255,255,255,155

[Line3]
UpdateDivider=-1
Meter=Line
MeasureName=Val5
X=911
Y=-39
H=100
W=466
LineWidth=2
LineColor=255,255,255,155

[Line4]
UpdateDivider=-1
;Meter=Line
MeasureName=Val5
X=911
Y=-19
H=100
W=466
LineColor=255,255,255,155

[Bar1]
UpdateDivider=-1
Meter=bar
MeasureName=Val6
BarOrientation=Vertical
BarColor=255,255,255,155
H=60
W=1
X=1025
Y=1

[Bar2]
UpdateDivider=-1
Meter=bar
MeasureName=Val6
BarOrientation=Vertical
BarColor=255,255,255,155
H=100
W=1
X=1150
Y=1

[Bar3]
UpdateDivider=-1
Meter=bar
MeasureName=Val6
BarOrientation=Vertical
BarColor=255,255,255,155
H=60
W=1
X=1260
Y=1

[Bar4]
UpdateDivider=-1
Meter=bar
MeasureName=Val6
BarOrientation=Vertical
BarColor=255,255,255,155
H=100
W=1
X=911
Y=1

[Bar5]
UpdateDivider=-1
Meter=bar
MeasureName=Val6
BarOrientation=Vertical
BarColor=255,255,255,155
H=100
W=1
X=920
Y=1

[MeterImageClick]
Meter=Image
W=105
H=60
X=921
Y=20
DynamicVariables=1
LeftMouseUpAction=[!Refresh]
SolidColor=0,0,0,1
Here is a modified code, which returns through the [MeasureUpMax], [MeasureUpMin], [MeasureDnMax] and [MeasureDnMin] measures the maximum and minimum upload / download network traffic. Note that when the skin is refreshed, all four measures return 0. The maximum values will increase when the network traffic is changing, while the minimum values keep the smallest values as long as the appropriate traffic is not zero. In a such case the measures will "reset" and after the appropriate network traffic increases above 0 they return the newest minimum values.

Code: Select all

[Rainmeter]
Update=400
AccurateText=1
;DynamicVariables=1
DragGroup=one

[Variables]
inusage=Val7
outusage=Val8
incurrent=0
intotal=0
outcurrent=0
outtotal=0
m=>
n=>
Largest=10000000
MinValDn=#Largest#
MinValUp=#Largest#

;==================================Styles=========================

[TextStyle]
FontFace=Segoe UI
FontSize=14
FontColor=255,255,255,255
AntiAlias=1

[TextStyle1]
FontFace=Segoe UI
FontSize=14
FontColor=255,255,255,255
AntiAlias=1
StringStyle=Bold

[AllStyle]
FontSize=14
FontWeight=100
FontColor=255,255,255,255
AntiAlias=1
DynamicVariables=1

[RightStyle]
StringAlign=Right

;==================================Measures=========================

[MeasureNetIn]
Measure=NetIn
updatedivider=10

[MeasureNetOut]
Measure=NetOut
updatedivider=10

[MeasureNetInC]
Measure=NetIn
Cumulative=1

[MeasureNetOutC]
Measure=NetOut
Cumulative=1

;===================================Calculations====================

[ValK]
updatedivider=-1
Measure=Calc
Formula=2048

[ValIn]
Measure=Calc
DynamicVariables=1
Formula=MeasureNetIn/1.05

[MeasureIN]
Measure=Calc
Formula=ValK > [ValIn] ? 0 : ValIn
DynamicVariables=1
IfAboveValue=10241
IfAboveAction=!SetVariable NetDC 100,255,100,255
IfBelowValue=10240
IfBelowAction=!SetVariable NetDC 255,255,255,255

[ValOut]
Measure=Calc
DynamicVariables=1
AverageSize=#avg#
Formula=MeasureNetOut/1.05

[MeasureNetInCumulative]
Measure=Calc
Formula=MeasureNetInC/6

[MeasureNetOutCumulative]
Measure=Calc
Formula=MeasureNetOutC/6

[MeasureOUT]
Measure=Calc
Formula=ValK > [ValOut] ? 0 : ValOut
DynamicVariables=1
IfAboveValue=1025
IfAboveAction=!SetVariable NetUC 100,100,255,255
IfBelowValue=1024
IfBelowAction=!SetVariable NetUC 255,255,255,255

[MeasureIN2]
Measure=Calc
Formula=MeasureIN
DynamicVariables=1

[MeasureOUT2]
Measure=Calc
Formula=MeasureOUT
DynamicVariables=1

[MeasureUpMax]
Measure=Calc
Formula=( Max ( MeasureUpMax, MeasureOUT2 ))

[MeasureUpMin]
Measure=Calc
Formula=(( #MinValUp# > 0 ) ? (( #MinValUp# > MeasureOUT2 ) ? MeasureOUT2 : #MinValUp# ) : #Largest# )
IfCondition=(#CURRENTSECTION#>0)
IfTrueAction=[!SetVariable MinValUp "[MeasureUpMin]"]
IfFalseAction=[!SetVariable MinValUp "#Largest#"]
IfConditionMode=1
;Formula=MeasureUpMin #m# MeasureOUT2 ? MeasureUpMin : MeasureOUT2
DynamicVariables=1

[MeasureDnMax]
Measure=Calc
Formula=( Max ( MeasureDnMax, MeasureIN2 ))

[MeasureDnMin]
Measure=Calc
Formula=(( #MinValDn# > 0 ) ? (( #MinValDn# > MeasureIN2 ) ? MeasureIN2 : #MinValDn# ) : #Largest# )
IfCondition=(#CURRENTSECTION#>0)
IfTrueAction=[!SetVariable MinValDn "[MeasureDnMin]"]
IfFalseAction=[!SetVariable MinValDn "#Largest#"]
IfConditionMode=1
DynamicVariables=1

[SwitchUp]
Measure=Calc
Formula=0 < MeasureOUT2 ? 1 : 0
IfAboveValue=0
IfAboveAction=[!SetVariable m <]

[SwitchDn]
Measure=Calc
Formula=0 < MeasureIN2 ? 1 : 0
IfAboveValue=0
IfAboveAction=[!SetVariable n "<"][!UpdateMeasure "MeasureDnMin"]

[Val5]
updatedivider=-1
Measure=Calc
Formula=0

[Val6]
updatedivider=-1
Measure=Calc
Formula=1

;=======================================Text Meters=================

[MeterTextSpeed]
UpdateDivider=-1
Meter=String
X=1115
Y=-3
MeterStyle=TextStyle1
StringAlign=right
Text="Speed"

[MeterTextMax]
UpdateDivider=-1
Meter=String
X=1155
Y=-3
MeterStyle=TextStyle1
StringAlign=left
Text="Maximum"

[MeterTextMin]
UpdateDivider=-1
Meter=String
X=1266
Y=-3
MeterStyle=TextStyle1
StringAlign=left
Text="Minimum"

[MeterTextUP]
Meter=String
X=922
Y=20
StringAlign=left
Text="UP"
FontColor=#NetUC#
DynamicVariables=1
FontSize=14
FontColor=255,255,255,255
AntiAlias=1
StringStyle=Bold

[MeterTextDN]
Meter=String
X=922
Y=40
StringAlign=left
Text="DN"
FontColor=#NetDC#
DynamicVariables=1
FontSize=14
FontColor=255,255,255,255
AntiAlias=1
StringStyle=Bold

[UpSpeed]
Meter=String
updatedivider=1
MeasureName=MeasureOUT2
X=1145
Y=17
StringAlign=right
MeterStyle=TextStyle
NumOfDecimals=2
AutoScale=1
Text="%1Bps"

[TextUpMin]
Meter=String
updatedivider=1
MeasureName=MeasureUpMin
X=1365
Y=17
MeterStyle=TextStyle
StringAlign=right
NumOfDecimals=2
AutoScale=1
Text=%1B

[TextUpMax]
updatedivider=1
Meter=String
MeasureName=MeasureUpMax
X=1255
Y=17
MeterStyle=TextStyle
StringAlign=right
NumOfDecimals=2
AutoScale=1
Text=%1B
DynamicVariables=1

[DnSpeed]
Meter=String
updatedivider=1
MeasureName=MeasureIN2
X=1145
Y=37
StringAlign=right
MeterStyle=TextStyle
NumOfDecimals=2
AutoScale=1
Text="%1Bps"

[DnData]
Meter=String
updatedivider=1
MeasureName=MeasureDnMin
X=1365
Y=37
MeterStyle=TextStyle
StringAlign=right
NumOfDecimals=2
AutoScale=1
Text=%1B

[DnSession]
updatedivider=1
Meter=String
MeasureName=MeasureDnMax
X=1255
Y=37
MeterStyle=TextStyle
StringAlign=right
NumOfDecimals=2
AutoScale=1
Text=%1B

;======================================End Text=====================

;======================================Connectivity=================<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

[MeasureInternetConnect]
Measure=Plugin
Plugin=CheckNet
ConnectionType=Internet
Disabled=0
Substitute="^1$":"CONNECTED","^-1$":"OFF LINE"
RegExpSubstitute=1

[MeterTextConnect]
Meter=String
MeasureName=MeasureInternetConnect
Fontsize=20
FontFace=Astronaut
AntiAlias=1 
StringAlign=Center
X=1024
Y=60
InlineSetting=Color | #Orange#
InlinePattern=(?i)^OFF Line
StringAlign=Right
FontColor=105,255,105,255

[MeasureType]
Measure=Plugin
Plugin=SysInfo
SysInfoType=ADAPTER_TYPE

[MeterType]
Meter=String
MeasureName=MeasureType
Fontsize=20
FontFace=Astronaut
InlineSetting=Case | UPPER
AntiAlias=1 
StringAlign=Left
FontColor=105,255,105,255
X=1195
Y=60
Text=%1
LeftMouseDownAction=
DynamicVariables=1

;=====================================Lines=========================

[MeterGraph2]
Meter=Line
MeasureName=MeasureOUT2
MeasureName2=MeasureIN2
X=0
Y=1
H=100
W=92
LineCount=2
LineWidth=4
LineColor=75,75,255,255
LineColor2=75,255,75,255
Autoscale=1
AntiAlias=1
UpdateDivider=5
TransformationMatrix=10; 0; 0; 1; 0; 0
TransformStroke=Fixed

;=========================================Boxes=====================

[LowerHoriz]
UpdateDivider=-1
Meter=Line
MeasureName=Val5
X=0
Y=102
H=1
W=1366
LineColor=255,255,255,255

[TopLine]
UpdateDivider=-1
Meter=Line
MeasureName=Val5
X=0
Y=0
H=1
W=1366
LineColor=255,255,255,255

[Line1]
UpdateDivider=-1
Meter=Line
MeasureName=Val5
X=911
Y=-79
H=100
W=466
LineColor=255,255,255,155

[Line2]
UpdateDivider=-1
Meter=Line
MeasureName=Val5
X=911
Y=-59
H=100
W=466
LineColor=255,255,255,155

[Line3]
UpdateDivider=-1
Meter=Line
MeasureName=Val5
X=911
Y=-39
H=100
W=466
LineWidth=2
LineColor=255,255,255,155

[Line4]
UpdateDivider=-1
;Meter=Line
MeasureName=Val5
X=911
Y=-19
H=100
W=466
LineColor=255,255,255,155

[Bar1]
UpdateDivider=-1
Meter=bar
MeasureName=Val6
BarOrientation=Vertical
BarColor=255,255,255,155
H=60
W=1
X=1025
Y=1

[Bar2]
UpdateDivider=-1
Meter=bar
MeasureName=Val6
BarOrientation=Vertical
BarColor=255,255,255,155
H=100
W=1
X=1150
Y=1

[Bar3]
UpdateDivider=-1
Meter=bar
MeasureName=Val6
BarOrientation=Vertical
BarColor=255,255,255,155
H=60
W=1
X=1260
Y=1

[Bar4]
UpdateDivider=-1
Meter=bar
MeasureName=Val6
BarOrientation=Vertical
BarColor=255,255,255,155
H=100
W=1
X=911
Y=1

[Bar5]
UpdateDivider=-1
Meter=bar
MeasureName=Val6
BarOrientation=Vertical
BarColor=255,255,255,155
H=100
W=1
X=920
Y=1

[MeterImageClick]
Meter=Image
W=105
H=60
X=921
Y=20
DynamicVariables=1
LeftMouseUpAction=[!Refresh]
SolidColor=0,0,0,1
Note that you can't set dynamic variables onto the [Rainmeter] section so I commented it out.
Please test the code and let me know how does it work.
User avatar
Mor3bane
Posts: 655
Joined: May 7th, 2016, 7:32 am

Re: Max/Min Internet Up/Down - not sure what to do

Mor3bane » December 3rd, 2019, 8:24 pm

balala wrote:
December 3rd, 2019, 7:15 pm
Here is a modified code, which returns through the [MeasureUpMax], [MeasureUpMin], [MeasureDnMax] and [MeasureDnMin] measures the maximum and minimum upload / download network traffic. Note that when the skin is refreshed, all four measures return 0. The maximum values will increase when the network traffic is changing, while the minimum values keep the smallest values as long as the appropriate traffic is not zero. In a such case the measures will "reset" and after the appropriate network traffic increases above 0 they return the newest minimum values.

Code: Select all

[Rainmeter]
Update=400
AccurateText=1
;DynamicVariables=1
DragGroup=one

[Variables]
inusage=Val7
outusage=Val8
incurrent=0
intotal=0
outcurrent=0
outtotal=0
m=>
n=>
Largest=10000000
MinValDn=#Largest#
MinValUp=#Largest#

;==================================Styles=========================

[TextStyle]
FontFace=Segoe UI
FontSize=14
FontColor=255,255,255,255
AntiAlias=1

[TextStyle1]
FontFace=Segoe UI
FontSize=14
FontColor=255,255,255,255
AntiAlias=1
StringStyle=Bold

[AllStyle]
FontSize=14
FontWeight=100
FontColor=255,255,255,255
AntiAlias=1
DynamicVariables=1

[RightStyle]
StringAlign=Right

;==================================Measures=========================

[MeasureNetIn]
Measure=NetIn
updatedivider=10

[MeasureNetOut]
Measure=NetOut
updatedivider=10

[MeasureNetInC]
Measure=NetIn
Cumulative=1

[MeasureNetOutC]
Measure=NetOut
Cumulative=1

;===================================Calculations====================

[ValK]
updatedivider=-1
Measure=Calc
Formula=2048

[ValIn]
Measure=Calc
DynamicVariables=1
Formula=MeasureNetIn/1.05

[MeasureIN]
Measure=Calc
Formula=ValK > [ValIn] ? 0 : ValIn
DynamicVariables=1
IfAboveValue=10241
IfAboveAction=!SetVariable NetDC 100,255,100,255
IfBelowValue=10240
IfBelowAction=!SetVariable NetDC 255,255,255,255

[ValOut]
Measure=Calc
DynamicVariables=1
AverageSize=#avg#
Formula=MeasureNetOut/1.05

[MeasureNetInCumulative]
Measure=Calc
Formula=MeasureNetInC/6

[MeasureNetOutCumulative]
Measure=Calc
Formula=MeasureNetOutC/6

[MeasureOUT]
Measure=Calc
Formula=ValK > [ValOut] ? 0 : ValOut
DynamicVariables=1
IfAboveValue=1025
IfAboveAction=!SetVariable NetUC 100,100,255,255
IfBelowValue=1024
IfBelowAction=!SetVariable NetUC 255,255,255,255

[MeasureIN2]
Measure=Calc
Formula=MeasureIN
DynamicVariables=1

[MeasureOUT2]
Measure=Calc
Formula=MeasureOUT
DynamicVariables=1

[MeasureUpMax]
Measure=Calc
Formula=( Max ( MeasureUpMax, MeasureOUT2 ))

[MeasureUpMin]
Measure=Calc
Formula=(( #MinValUp# > 0 ) ? (( #MinValUp# > MeasureOUT2 ) ? MeasureOUT2 : #MinValUp# ) : #Largest# )
IfCondition=(#CURRENTSECTION#>0)
IfTrueAction=[!SetVariable MinValUp "[MeasureUpMin]"]
IfFalseAction=[!SetVariable MinValUp "#Largest#"]
IfConditionMode=1
;Formula=MeasureUpMin #m# MeasureOUT2 ? MeasureUpMin : MeasureOUT2
DynamicVariables=1

[MeasureDnMax]
Measure=Calc
Formula=( Max ( MeasureDnMax, MeasureIN2 ))

[MeasureDnMin]
Measure=Calc
Formula=(( #MinValDn# > 0 ) ? (( #MinValDn# > MeasureIN2 ) ? MeasureIN2 : #MinValDn# ) : #Largest# )
IfCondition=(#CURRENTSECTION#>0)
IfTrueAction=[!SetVariable MinValDn "[MeasureDnMin]"]
IfFalseAction=[!SetVariable MinValDn "#Largest#"]
IfConditionMode=1
DynamicVariables=1

[SwitchUp]
Measure=Calc
Formula=0 < MeasureOUT2 ? 1 : 0
IfAboveValue=0
IfAboveAction=[!SetVariable m <]

[SwitchDn]
Measure=Calc
Formula=0 < MeasureIN2 ? 1 : 0
IfAboveValue=0
IfAboveAction=[!SetVariable n "<"][!UpdateMeasure "MeasureDnMin"]

[Val5]
updatedivider=-1
Measure=Calc
Formula=0

[Val6]
updatedivider=-1
Measure=Calc
Formula=1

;=======================================Text Meters=================

[MeterTextSpeed]
UpdateDivider=-1
Meter=String
X=1115
Y=-3
MeterStyle=TextStyle1
StringAlign=right
Text="Speed"

[MeterTextMax]
UpdateDivider=-1
Meter=String
X=1155
Y=-3
MeterStyle=TextStyle1
StringAlign=left
Text="Maximum"

[MeterTextMin]
UpdateDivider=-1
Meter=String
X=1266
Y=-3
MeterStyle=TextStyle1
StringAlign=left
Text="Minimum"

[MeterTextUP]
Meter=String
X=922
Y=20
StringAlign=left
Text="UP"
FontColor=#NetUC#
DynamicVariables=1
FontSize=14
FontColor=255,255,255,255
AntiAlias=1
StringStyle=Bold

[MeterTextDN]
Meter=String
X=922
Y=40
StringAlign=left
Text="DN"
FontColor=#NetDC#
DynamicVariables=1
FontSize=14
FontColor=255,255,255,255
AntiAlias=1
StringStyle=Bold

[UpSpeed]
Meter=String
updatedivider=1
MeasureName=MeasureOUT2
X=1145
Y=17
StringAlign=right
MeterStyle=TextStyle
NumOfDecimals=2
AutoScale=1
Text="%1Bps"

[TextUpMin]
Meter=String
updatedivider=1
MeasureName=MeasureUpMin
X=1365
Y=17
MeterStyle=TextStyle
StringAlign=right
NumOfDecimals=2
AutoScale=1
Text=%1B

[TextUpMax]
updatedivider=1
Meter=String
MeasureName=MeasureUpMax
X=1255
Y=17
MeterStyle=TextStyle
StringAlign=right
NumOfDecimals=2
AutoScale=1
Text=%1B
DynamicVariables=1

[DnSpeed]
Meter=String
updatedivider=1
MeasureName=MeasureIN2
X=1145
Y=37
StringAlign=right
MeterStyle=TextStyle
NumOfDecimals=2
AutoScale=1
Text="%1Bps"

[DnData]
Meter=String
updatedivider=1
MeasureName=MeasureDnMin
X=1365
Y=37
MeterStyle=TextStyle
StringAlign=right
NumOfDecimals=2
AutoScale=1
Text=%1B

[DnSession]
updatedivider=1
Meter=String
MeasureName=MeasureDnMax
X=1255
Y=37
MeterStyle=TextStyle
StringAlign=right
NumOfDecimals=2
AutoScale=1
Text=%1B

;======================================End Text=====================

;======================================Connectivity=================<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

[MeasureInternetConnect]
Measure=Plugin
Plugin=CheckNet
ConnectionType=Internet
Disabled=0
Substitute="^1$":"CONNECTED","^-1$":"OFF LINE"
RegExpSubstitute=1

[MeterTextConnect]
Meter=String
MeasureName=MeasureInternetConnect
Fontsize=20
FontFace=Astronaut
AntiAlias=1 
StringAlign=Center
X=1024
Y=60
InlineSetting=Color | #Orange#
InlinePattern=(?i)^OFF Line
StringAlign=Right
FontColor=105,255,105,255

[MeasureType]
Measure=Plugin
Plugin=SysInfo
SysInfoType=ADAPTER_TYPE

[MeterType]
Meter=String
MeasureName=MeasureType
Fontsize=20
FontFace=Astronaut
InlineSetting=Case | UPPER
AntiAlias=1 
StringAlign=Left
FontColor=105,255,105,255
X=1195
Y=60
Text=%1
LeftMouseDownAction=
DynamicVariables=1

;=====================================Lines=========================

[MeterGraph2]
Meter=Line
MeasureName=MeasureOUT2
MeasureName2=MeasureIN2
X=0
Y=1
H=100
W=92
LineCount=2
LineWidth=4
LineColor=75,75,255,255
LineColor2=75,255,75,255
Autoscale=1
AntiAlias=1
UpdateDivider=5
TransformationMatrix=10; 0; 0; 1; 0; 0
TransformStroke=Fixed

;=========================================Boxes=====================

[LowerHoriz]
UpdateDivider=-1
Meter=Line
MeasureName=Val5
X=0
Y=102
H=1
W=1366
LineColor=255,255,255,255

[TopLine]
UpdateDivider=-1
Meter=Line
MeasureName=Val5
X=0
Y=0
H=1
W=1366
LineColor=255,255,255,255

[Line1]
UpdateDivider=-1
Meter=Line
MeasureName=Val5
X=911
Y=-79
H=100
W=466
LineColor=255,255,255,155

[Line2]
UpdateDivider=-1
Meter=Line
MeasureName=Val5
X=911
Y=-59
H=100
W=466
LineColor=255,255,255,155

[Line3]
UpdateDivider=-1
Meter=Line
MeasureName=Val5
X=911
Y=-39
H=100
W=466
LineWidth=2
LineColor=255,255,255,155

[Line4]
UpdateDivider=-1
;Meter=Line
MeasureName=Val5
X=911
Y=-19
H=100
W=466
LineColor=255,255,255,155

[Bar1]
UpdateDivider=-1
Meter=bar
MeasureName=Val6
BarOrientation=Vertical
BarColor=255,255,255,155
H=60
W=1
X=1025
Y=1

[Bar2]
UpdateDivider=-1
Meter=bar
MeasureName=Val6
BarOrientation=Vertical
BarColor=255,255,255,155
H=100
W=1
X=1150
Y=1

[Bar3]
UpdateDivider=-1
Meter=bar
MeasureName=Val6
BarOrientation=Vertical
BarColor=255,255,255,155
H=60
W=1
X=1260
Y=1

[Bar4]
UpdateDivider=-1
Meter=bar
MeasureName=Val6
BarOrientation=Vertical
BarColor=255,255,255,155
H=100
W=1
X=911
Y=1

[Bar5]
UpdateDivider=-1
Meter=bar
MeasureName=Val6
BarOrientation=Vertical
BarColor=255,255,255,155
H=100
W=1
X=920
Y=1

[MeterImageClick]
Meter=Image
W=105
H=60
X=921
Y=20
DynamicVariables=1
LeftMouseUpAction=[!Refresh]
SolidColor=0,0,0,1
Note that you can't set dynamic variables onto the [Rainmeter] section so I commented it out.
Please test the code and let me know how does it work.
Really, really nice!

Thanks balala.

I see your formulas - they are pretty cool. I'll have to learn how they work now :???: :thumbup:

I've watched the skin for a while now, and the values no longer 'go to sleep' as mine seemed to be doing.
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself
User avatar
balala
Rainmeter Sage
Posts: 9258
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Max/Min Internet Up/Down - not sure what to do

balala » December 3rd, 2019, 8:30 pm

Mor3bane wrote:
December 3rd, 2019, 8:24 pm
I see your formulas - they are pretty cool. I'll have to learn how they work now :???: :thumbup:
Ok, feel free to ask if you don't understand something.
Glad if it does work.
User avatar
Mor3bane
Posts: 655
Joined: May 7th, 2016, 7:32 am

Re: Max/Min Internet Up/Down - not sure what to do

Mor3bane » December 3rd, 2019, 9:31 pm

balala wrote:
December 3rd, 2019, 8:30 pm
Glad if it does work.
Like a charm - a pretty shiny charm - I'll keep it always.
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself
User avatar
balala
Rainmeter Sage
Posts: 9258
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Max/Min Internet Up/Down - not sure what to do

balala » December 3rd, 2019, 9:34 pm

Mor3bane wrote:
December 3rd, 2019, 9:31 pm
Like a charm - a pretty shiny charm - I'll keep it always.
I'm glad. :thumbup: