It is currently March 29th, 2024, 10:49 am
Get help with creating, editing & fixing problems with skins
eladage
Posts: 2 Joined: August 2nd, 2018, 4:05 pm
Post
by eladage » August 2nd, 2018, 4:10 pm
Hey, I'm a bit of a noob but I'm measuring my core temps 0-5 and displaying them but what I really want to do is take all 6 cores and then divide by 6 to get my average. I
My measure code looks like this:
Code: Select all
[MeasureCore0Temp]
Measure=Plugin
Plugin=CoreTemp
CoreTempType=Temperature
CoreTempIndex=0
IfAboveValue=70
IfAboveAction=!SetVariable FontTempColor0 "235,170,0,255"
IfBelowValue=71
IfBelowAction=!SetVariable FontTempColor0 "255,255,255,205"
And my meter code looks like this:
Code: Select all
[meterCore0Temp]
Meter=String
MeterStyle=styleRightText
MeasureName=MeasureCore0Temp
FontColor=#FontTempColor0#
X=42
Y=120
W=190
H=14
Text="%1°"
DynamicVariables=1
Is there a simple way to make a new meter that takes MeasureCore0Temp through MeasureCore5Temp and averages them?
Sorry if this has been asked before, I couldn't find any answers.
balala
Rainmeter Sage
Posts: 16110 Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania
Post
by balala » August 2nd, 2018, 4:25 pm
eladage wrote: Is there a simple way to make a new meter that takes MeasureCore0Temp through MeasureCore5Temp and averages them?
You have to create a Calc measure, which calculates the average:
Code: Select all
[MeasureCoreAverage]
Measure=Calc
Formula=(( MeasureCore0Temp + MeasureCore1Temp + MeasureCore2Temp + MeasureCore3Temp + MeasureCore4Temp + MeasureCore5Temp ) / 6 )
eladage
Posts: 2 Joined: August 2nd, 2018, 4:05 pm
Post
by eladage » August 2nd, 2018, 4:29 pm
Awesome, that does the trick. Thanks for your help!
balala
Rainmeter Sage
Posts: 16110 Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania
Post
by balala » August 2nd, 2018, 4:30 pm
Glad to help.