spdermn02 / TouchPortal-HardwareMonitor

Read Data from Open Hardware Monitor or Libre Hardware Monitor, get all data from the sensors as auto created state values.
MIT License
20 stars 1 forks source link

TP_HM :ERROR: An error has occurred reading hardware data: Error: Knoten #16

Open ApophysX opened 1 week ago

ApophysX commented 1 week ago

Hello,

on Windows 11 and Open Hardware Monitor is runinng and i get a error

05:11:59.638 - [LOG ] [Plugin Instance] 2024-09-08T03:11:59.638Z : TP_HM :DEBUG: Attempting to select for data source root/OpenHardwareMonitor class Hardware 05:11:59.667 - [LOG ] [Plugin Instance] 2024-09-08T03:11:59.667Z : TP_HM :ERROR: An error has occurred reading hardware data: Error: Knoten - DESKTOP-T0M1RV7

05:11:59.667 - [LOG ] [Plugin Instance] Beschreibung = Der Anbieter kann diesen Vorgang nicht bearbeiten. will try again 05:11:59.667 - [LOG ] [Plugin Instance] 2024-09-08T03:11:59.667Z : TP_HM :ERROR: attempted to read hardware data failed 60 times, check if your Hardware Monitor is running

spdermn02 commented 1 week ago

I'll get you something to run in a command prompt to check to see if data is being written to the WMI process that this plugin depends on.

ApophysX commented 6 days ago

Okay, i solved the problem by using LibreHardwareMonitor, so it worked under Windows 11 Pro 23H2.

But today I updated to 24H2 and now it doesn't work anymore. The message appears again: TP_HM :DEBUG: Attempting to select for data source root/LibreHardwareMonitor class Hardware TP_HM :ERROR: An error has occurred reading hardware data: Error: Knoten - xxxx

net start winmgmt Der angeforderte Dienst wurde bereits gestartet.

spdermn02 commented 6 days ago

Well.. hmm. That update shouldn't have mattered if it was working. Is Libre set to start on windows start?

I'm in the progress of building another plugin but will be pulling in some of it's code to this plugin to detect the program running prior to attempting to read from WMI so that it doesn't sit in a read/error loop.

Otherwise see if restarting the plugin, after Libre is started, then I wonder if Libre has issues writing and has a log to review.

ApophysX commented 5 days ago

Hello, yes LibreHardwareMonitor is active when Windows starts, but it doesn't change anything. I have stopped and restarted the plugin many times in Touch Portal, but the message is always the same.

ApophysX commented 2 days ago

So there is no solution in sight at the moment?

spdermn02 commented 2 days ago

I need to get you some powershell commands to run to see if the data is even being written. I'll see what I can get you today.

spdermn02 commented 2 days ago

hey @ApophysX can you try this in a powershell prompt

Get-WmiObject -Namespace root/LibreHardwareMonitor -Query "select * from hardware"  |Sort-Object HardwareType,Name
ApophysX commented 1 day ago

Bild_2024-09-16_063934538

spdermn02 commented 20 hours ago

Was this using a powershell prompt "run as administrator"? If not can you try that too.

If that doesn't work either, It seems like Windows Management Instrumentation (WMI) isn't working on your pc and that needs to be resolved.