Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1536

Help: Rainmeter Skins • Re: Using HWinfo with Rainmeter, roundline seems wrong

$
0
0
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:

[Variables]UsedColor=255,205,112,255VariableX=0VariableY=100RadioCircle=60Width=120Height=120Start=(Rad(126))End=(Rad(288))[MeterUsedCPU]Meter=RoundlineMeasureName=MeasureCPUUsageValueFormattedX=#VariableX#Y=#VariableY#W=#Width#H=#Height#StartAngle=#Start#RotationAngle=#End#LineLength=(#RadioCircle# - 5)LineColor=#UsedColor#Solid=1AntiAlias=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:

[Variables]UsedColor=255,205,112,255VariableX=0VariableY=100RadioCircle=60Width=120Height=120Start=(Rad(126))End=(Rad(288))[MeasureCPUUsageValueFormatted]Measure=CalcFormula=30.4MaxValue=100[MeterUsedCPU]Meter=RoundlineMeasureName=MeasureCPUUsageValueFormattedX=#VariableX#Y=#VariableY#W=#Width#H=#Height#StartAngle=#Start#RotationAngle=#End#LineLength=(#RadioCircle# - 5)LineColor=#UsedColor#Solid=1AntiAlias=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).

Statistics: Posted by Yincognito — Yesterday, 7:25 pm



Viewing all articles
Browse latest Browse all 1536

Trending Articles