It is currently October 16th, 2024, 12:24 am

Using HWiNFO with Rainmeter

Plugins and Addons popular with the Community
Bozodragon
Posts: 3
Joined: October 9th, 2024, 1:59 pm

Re: Using HWiNFO with Rainmeter

Post by Bozodragon »

Hello!

Long time listener, first time caller.

I've been trying to configure some system monitor skins but have hit a roadblock and can't find the issue I'm facing discussed anywhere.

I have installed HWiNFO and have set up the sensors I'm interested in to report to the widget. Here is my reg query to check everything is working.

Code: Select all

C:\Users\jacob>reg query HKEY_CURRENT_USER\SOFTWARE\HWiNFO64\VSB

HKEY_CURRENT_USER\SOFTWARE\HWiNFO64\VSB
    Sensor0    REG_SZ    System: MSI MS-7C84
    Label0    REG_SZ    Physical Memory Load
    Value0    REG_SZ    24.1 %
    ValueRaw0    REG_SZ    24.1
    Color0    REG_SZ    8080c0
    Sensor1    REG_SZ    CPU [#0]: AMD Ryzen 5 5600X
    Label1    REG_SZ    Total CPU Usage
    Value1    REG_SZ    19.7 %
    ValueRaw1    REG_SZ    19.7
    Color1    REG_SZ    ff0000
    Sensor2    REG_SZ    CPU [#0]: AMD Ryzen 5 5600X: Enhanced
    Label2    REG_SZ    CPU Die (average)
    Value2    REG_SZ    42.9 °C
    ValueRaw2    REG_SZ    42.9
    Color2    REG_SZ    0080c0
    Sensor3    REG_SZ    GPU [#0]: NVIDIA GeForce RTX 4070 SUPER
    Label3    REG_SZ    GPU Temperature
    Value3    REG_SZ    52.9 °C
    ValueRaw3    REG_SZ    52.9
    Color3    REG_SZ    400040
    Sensor4    REG_SZ    GPU [#0]: NVIDIA GeForce RTX 4070 SUPER
    Label4    REG_SZ    GPU Core Load
    Value4    REG_SZ    1.0 %
    ValueRaw4    REG_SZ    1.0
    Color4    REG_SZ    408080
    Sensor5    REG_SZ    GPU [#0]: NVIDIA GeForce RTX 4070 SUPER
    Label5    REG_SZ    GPU Memory Usage
    Value5    REG_SZ    20.2 %
    ValueRaw5    REG_SZ    20.2
    Color5    REG_SZ    008080
All looks good so far.

I then hooked it up to my skin of choice (Lines3 in this case) and got a big fat 0 for every output. I tried using Calcs thinking it might be an issue with the output, set it to use raw outputs etc. but still nothing.

Here is an example of one I have been banging my head against for reference.

Code: Select all

[Variables]
BarColor=255, 255, 255
BarBack=255, 255, 255, 20

FontName=HelveticaNeueLT Com 55 Roman
FontColor=255, 255, 255
FontHeight=12
AntiAlias=1

[MeasureGPUCoreLoad]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegKey=ValueRaw4

[CalcGPUCoreLoad]
Measure=Calc
Formula=[MeasureGPUCoreLoad]
MinValue=0
MaxValue=100
DynamicVariables=1

[BarStart]
Meter=IMAGE
X=12
Y=18
W=4
H=1
SolidColor=#BarBack#

[BarEnd]
Meter=IMAGE
X=12
Y=109
W=4
H=2
SolidColor=#BarBack#

[BarLine]
Meter=IMAGE
X=12
Y=20
W=4
H=90
SolidColor=#BarBack#

[MeterPercent]
Meter=STRING
MeasureName=CalcGPUCoreLoad
X=20
Y=109
FontColor=#FontColor#
FontSize=#FontHeight#
FontFace=#FontName#
AntiAlias=1
Postfix=%
Text="%1"
Percentual=1
AutoScale=1

[MeterGPUCoreLoadLabel]
Meter=STRING
Text="GPU"
X=20
Y=10
FontColor=#FontColor#
FontSize=#FontHeight#
FontFace=#FontName#
AntiAlias=1

[MeterBar]
MeasureName=CalcGPUCoreLoad
Meter=BAR
X=10
Y=20
W=6
H=180
BarOrientation=VERTICAL
BarColor=#BarColor#
Flip=1
Looking at the logs, Rainmeter is not receiving any values for the registry measures.
MeasureGPUCoreLoad Range 0.0 - 1.0 Number 0 String 0

Still, I thought, this might be me being a big 'ol noob, lets try a known working skin.
So I downloaded the example at the end of the page on how to use HWiNFO with Rainmeter.

Still nothing.
Every value showing as 0

When I right click on this skin and select "Display Sensors" I get a lovely page showing the same results as I get from the reg query, but looking at the log for the skin, it is also seeing nothing from the registry measure.

I have tried launching Rainmeter as an administrator, running every update I can think of, restarts etc.

Would appreciate some illumination as this has been a rather frustrating experience this time round :thumbdown:
User avatar
jsmorley
Developer
Posts: 22857
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Using HWiNFO with Rainmeter

Post by jsmorley »

You have duplicate options:

Code: Select all

[MeasureGPUCoreLoad]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegKey=ValueRaw4
Should be:

Code: Select all

[MeasureGPUCoreLoad]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw4
Bozodragon
Posts: 3
Joined: October 9th, 2024, 1:59 pm

Re: Using HWiNFO with Rainmeter

Post by Bozodragon »

Oh, so I do, thank you for the spot :)

Still reading 0, but at least there is a theoretical value to read now!
Bozodragon
Posts: 3
Joined: October 9th, 2024, 1:59 pm

Re: Using HWiNFO with Rainmeter

Post by Bozodragon »

Hello again!

Just wanted to post a quick update as I managed to get it working (woo!)

I previously mentioned that running as an administrator on its own did nothing, and it didn't, but I had a look at the security panel in the properties on the Rainmeter .exe and had a fiddle with the security settings.

To be completely honest, I am not sure which permission fixed the issue. I saw two groups I was unfamiliar with called "ALL APPLICATION PACKAGES" and "ALL RESTRICTED APPLICATION PACKAGES", but honestly, I just granted full control to all the groups and users on the list.

I may come back and turn them off one by one in the future, and if so I will update on which permission did the trick, but for now it's working and my bars are looking smexy so I'm off to the races 8-)

Thanks for catching the Key/Value error jsmorley, I am certain that saved me a whole world of pain too!