Custom user sensors in HWiNFO

Martin

HWiNFO Author
Staff member
HWiNFO since version 6.10 introduces a new feature - ability to display custom user sensors in the sensors window.
This feature allows users with basic programming skills to show any sensor values. This might be useful in case of custom-made devices, or sensor values not implemented in HWiNFO by default (i.e. clock time).
The interface used to provide data to HWiNFO is Windows Registry. Users wishing to publish data into sensors will need to create a few specific keys and values in the registry.
Format of the required registry is following.

Main registry node for custom sensors must reside under: HKEY_CURRENT_USER\Software\HWiNFO64\Sensors\Custom
Under this node, up to 64 custom keys can be placed, each of them representing an unique sensor instance. Name of the key is used as the sensor name. Example: HKEY_CURRENT_USER\Software\HWiNFO64\Sensors\Custom\My Device1

Under each of the custom sensor keys, a set of defined sensor value keys shall be located. These keys must use one of the following names in order to be properly recognized:
Key Name​
Description​
TempXA temperature value in degrees of Celsius
VoltXA voltage value in Volts
FanXA fan value in RPM
CurrentXA current value in Amperes
PowerXA power value in Watts
ClockXA clock value in MHz
UsageXA usage value in %
OtherXOther value in custom units
The "X" represents a sequence number starting from 0, for example the first temperature value shall be named as Temp0.

Under each of the above keys the following registry values must be present:
Value Name​
Accepted Value Type​
Description​
NameREG_SZA string describing the name of the value.
ValueREG_DWORD, REG_QWORD, REG_SZThe resulting value from the sensor readout.
Use REG_DWORD or REG_QWORD for integer values, REG_SZ as a string for floating-point values.
UnitREG_SZUsed for the "Other" value type only to describe the custom unit name.

Follwing is an example of registry values:
CustomSensor.png
used to show the following sensor:
CustomSensor2.png


I hope this feature will be useful.
Feel free to post your experience and your custom applications in this thread.
 

MintyMods

Minty
Hi Martin,

Will these custom sensor results be available via the standard shared memory support or is this new feature limited to showing these custom readings within the HWiNFO sensor window only?

Cheers
Minty
 

MintyMods

Minty
Thanks, sounds like a very useful addition. I assume there are no changes to the actual SHM API for this change?
 

Bri

New Member
So we can't add actual sensors to HWiNFO, this just adds a value that gets reported as a sensor? For example, I have a laptop and the software that came with it can see fan speeds, but HWiNFO can't see them. This wouldn't allow me to have HWiNFO monitor those fan speeds, would it?
 

Martin

HWiNFO Author
Staff member
If you know how to read fan speeds for that laptop, you can write an application that will export those values to HWiNFO.
 
Top