akej74 / grid-control

Grid Control is a free and open source alternative to the CAM application from NZXT
GNU General Public License v3.0
147 stars 31 forks source link

Grid Control doesn't find Librehardware Monitor anymore #36

Open MrScreemi opened 4 years ago

MrScreemi commented 4 years ago

Hi

First i have to thank you for your great tool. It's the best one i have seen out there. I don't know if you are still willing to maintain your nice little program.

Libre Hardware Monitor changed something a while ago and now Grid Control can't read the sensor values anymore.

The task is now called Libre Hardware Monitor and not Open Hardware Monitor anymore. Maybe that's a helpfull hint.

It would be really great if you could fix that an i could upgrade to a newer version of lhwm.

Thx a lot!

derflacco commented 4 years ago

+1 i need LibreHwMonitor too, because OpenHwMonitor won't read temps for my 5700xt.

akej74 commented 4 years ago

Hi @MrScreemi, let's see if we can pinpoint the problem. First, I like to check if you get any error message in Grid Control, e.g. "OpenHardwareMonitor WMI data not found"? Or maybe some errors when trying to read sensor values or similar?

I have some limited possibilities to troubleshoot this as I have changed my HW and I'm not using the Grid anymore. On top of this, I have also switched from Windows to Linux (no dual boot unfortunately). Not sure how well OpenHWMonitor / LibreHWMonitor will run in a virtual machine, but I will give it a try.

To help me a bit with the troubleshooting, would you be OK trying to run Grid Control directly from the Python source...? If so, I'm happy to give some guidelines on how to get started :-)

MrScreemi commented 4 years ago

Hi akej74

Great to here from you. There is no errormassage while starting gridcontrol. I attached a screenshot with all the infos i have right now. The tab sensor configuration is completely empty.

libre

As soon as i start openhardware monitor or an old verison of libre where the process is still called open hardware monitor, like it was until a couple of version ago, it picks up all the sensor readings immediately.

open

I am totally willing to run gridcontroll from source if you can provide a little tutorial how to get it running. Installing an IDE an Python shouldn't be big of a problem with a little help.

stilltli commented 4 years ago

I had the same issue and fixed the reference to OpenHardwareMonitor and changed it to LibreHardwareMonitor, fixed version is in my fork: https://github.com/stilltli/grid-control

Unfortunetly i was unable to compile a .exe with pyinstaller, it seems like a lot of modules are missing and i don't know how to get them into pyinstaller

akej74 commented 4 years ago

Thanks @stilltli for your help; I have retired my Grid unit as well as switched to Linux, but I do a test with PyInstaller just to verify the parameters needed to build. @MrScreemi maybe you can give the fork a try, i.e. test it with LibreHWMon?

akej74 commented 4 years ago

@MrScreemi please see here how to run Grid Control directly from Python.

Automaticism commented 4 years ago

Thanks to you @stilltli for remapping it to use LibreMonitor and thanks to @akej74 for actually creating it and linking to the issue with the required packages. After installing the necessary packages I used the following arguments for pyinstaller: pyinstaller --win-no-prefer-redirects --onefile --noupx --noconsole gridcontrol.py

I was able to pack this up in one file and run it on my system using Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 22:39:24) [MSC v.1916 32 bit (Intel)] on win32.