Min & Max Sensor Value

Fabad

New Member
I wonder if it is possible to display the temperature values ​​Min and Max with "hwinfo Shared Memory".

Have the ID example this way:

Entry: Total CPU Usage
ID: 1007030

Mini for:
ID: -1007030
or Min1007030

Max
ID:+1007030
or Max1007030
 

Martin

HWiNFO Author
Staff member
HWiNFO doesn't export the Min/Max values to 3rd party applications. These values can easily be calculated by those tools based on actual values.
Nick, what do you think?
 

Fabad

New Member
Open Hardware Monitor with Plugin it is possible to do this way.

[measureCPUTemp]
Measure=Plugin
Plugin=Plugins\OpenHardwareMonitorPlugin.dll
Hardware=<Hardware label>
Type=Temperatures
Sensor=<Sensor label>
SensorMax=1

[MeterCPUTemp]
Meter=String
MeasureName=measureCPUTemp
X=2
Y=2
H=16
AntiAlias=1
NumOfDecimals=1
Text="Cpu Temp: %1°c"

I try to run the code on the forum thread Rainmeter but without success.

I started my skin with hwinfo because I already use for the OSD ingame.
I do not want to use several software for information about my skin.
 

stangowner

Moderator
Fabad said:
Open Hardware Monitor with Plugin it is possible to do this way.
....
I try to run the code on the forum thread Rainmeter but without success.

I started my skin with hwinfo because I already use for the OSD ingame.
I do not want to use several software for information about my skin.
Understood, and I'll consider adding it later. The workaround listed to get around the min=0 issue in that post I linked is a bit ugly.

Anyways, it does work fine. So you can do it for now. Edit the skin provided in the installer to do the following:

1 - Add the 'm' variable to the [variables] section which is needed for the min=0 workaround. So after line 19, add:
Code:
m=>
2 - Delete everything after line 309 which reads '; Table Headers' and replace it with the following:
Code:
[MeterHWiNFOCPU0HeaderMin]
Meter=String
X=#Column1#
Y=5R
Text="MIN"
MeterStyle=HWiNFOTableHeaderStyle

[MeterHWiNFOCPU0HeaderCurrent]
Meter=String
X=#Column2#
Y=0r
Text="CUR"
MeterStyle=HWiNFOTableHeaderStyle

[MeterHWiNFOCPU0HeaderMax]
Meter=String
X=#Column3#
Y=0r
Text="MAX"
MeterStyle=HWiNFOTableHeaderStyle
Code:
; CPU Usage Min/Current/Max

[MeterHWiNFOCoreClockLabel]
Meter=String
X=0
Y=0R
Text="CPU Usage"
MeterStyle=HWiNFOTableHeaderStyle

; Calculate the minimum CPU Usage
[Switch]
Measure=Calc
Formula=0 < HWiNFOCPU0UsageMin ? 1 : 0
IfAboveValue=0
IfAboveAction=!RainmeterSetVariable m <
Code:
[HWiNFOCPU0UsageMin]
Measure=Calc
Formula=HWiNFOCPU0UsageMin #m# HWiNFOCPU0Usage ? HWiNFOCPU0UsageMin : HWiNFOCPU0Usage
DynamicVariables=1
Code:
[MeterHWiNFOCPU0UsageMin]
Meter=String
MeasureName=HWiNFOCPU0UsageMin
X=#Column1#
Y=0r
Text="%1"
NumOfDecimals=2
MeterStyle=HWiNFOTextStyle
Code:
[MeterHWiNFOCPU0UsageCurrent]
Meter=String
MeasureName=HWiNFOCPU0Usage
X=#Column2#
Y=0r
Text="%1"
NumOfDecimals=2
MeterStyle=HWiNFOTextStyle
Code:
; Calculate the maximum CPU Usage
[HWiNFOCPU0UsageMax]
Measure=Calc
Formula=HWiNFOCPU0UsageMax > HWiNFOCPU0Usage ? HWiNFOCPU0UsageMax : HWiNFOCPU0Usage
Code:
[MeterHWiNFOCPU0UsageMax]
Meter=String
MeasureName=HWiNFOCPU0UsageMax
X=#Column3#
Y=0r
Text="%1"
NumOfDecimals=2
MeterStyle=HWiNFOTextStyle
3- Refresh the skin and you'll see the following:
 
Last edited by a moderator:

Fabad

New Member
Thank you for their help, I added this code to my skin.
This is my first skin and I learned on the job.
 
Top