It is currently September 7th, 2024, 11:42 pm
Get help with creating, editing & fixing problems with skins
Skyorz
Posts: 1 Joined: May 21st, 2024, 1:25 pm
Post
by Skyorz » May 21st, 2024, 1:35 pm
Yesterday I tried to do my own dashboard to control some measures, first thing I tried was CPU Usage.
This is the result right now, the roundline meter is bigger than percentage, also at some point showed 50% and it was full.
Here is the code, I tried to use ControlStart, ControlShift, ControlLenght and ControlShift but I think I'm not getting how they work.
Code: Select all
[Variables]
UsedColor=255,205,112,255
VariableX=0
VariableY=100
RadioCircle=60
Width=120
Height=120
Start=(Rad(126))
End=(Rad(288))
[MeterUsedCPU]
Meter=Roundline
MeasureName=MeasureCPUUsageValueFormatted
X=#VariableX#
Y=#VariableY#
W=#Width#
H=#Height#
StartAngle=#Start#
RotationAngle=#End#
LineLength=(#RadioCircle# - 5)
LineColor=#UsedColor#
Solid=1
AntiAlias=1
You do not have the required permissions to view the files attached to this post.
Yincognito
Rainmeter Sage
Posts: 8030 Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita
Post
by Yincognito » May 21st, 2024, 7:25 pm
Skyorz wrote: ↑ May 21st, 2024, 1:35 pm
Yesterday I tried to do my own dashboard to control some measures, first thing I tried was CPU Usage.
This is the result right now, the roundline meter is bigger than percentage, also at some point showed 50% and it was full.
Here is the code, I tried to use ControlStart, ControlShift, ControlLenght and ControlShift but I think I'm not getting how they work.
Code: Select all
[Variables]
UsedColor=255,205,112,255
VariableX=0
VariableY=100
RadioCircle=60
Width=120
Height=120
Start=(Rad(126))
End=(Rad(288))
[MeterUsedCPU]
Meter=Roundline
MeasureName=MeasureCPUUsageValueFormatted
X=#VariableX#
Y=#VariableY#
W=#Width#
H=#Height#
StartAngle=#Start#
RotationAngle=#End#
LineLength=(#RadioCircle# - 5)
LineColor=#UsedColor#
Solid=1
AntiAlias=1
You didn't show the measure, but anyway, one can work with a simple Calc measure replicating the value, and, assuming a proper
MaxValue , it should work:
Code: Select all
[Variables]
UsedColor=255,205,112,255
VariableX=0
VariableY=100
RadioCircle=60
Width=120
Height=120
Start=(Rad(126))
End=(Rad(288))
[MeasureCPUUsageValueFormatted]
Measure=Calc
Formula=30.4
MaxValue=100
[MeterUsedCPU]
Meter=Roundline
MeasureName=MeasureCPUUsageValueFormatted
X=#VariableX#
Y=#VariableY#
W=#Width#
H=#Height#
StartAngle=#Start#
RotationAngle=#End#
LineLength=(#RadioCircle# - 5)
LineColor=#UsedColor#
Solid=1
AntiAlias=1
Roundline.jpg
Your MaxValue - if it exists - seem to be set to around 60, which would produce the extent shown in your screenshot. Or, your usage value in the measure is bigger, but then this wouldn't explain the value displayed in your screenshot (which is missing from your code sample).
You do not have the required permissions to view the files attached to this post.