This plugin communicates with OHM using a WMI interface to read values (i.e. you must be running OHM for this to work). You specify the sensor to use by supplying three strings to the configuration: the hardware name, the sensor type, and the sensor name. These are the three strings that appear in the sensor hierarchy when you run OHM.
This plugin requires a version of OHM built after JAN-2011. I have built a version of OHM and included in the zip file. The OpenHardwareMonitor SVN directory contains a version that was built from source on 6-FEB-2011 which contains the WMI server needed to communicate with the plugin. Once OHM releases an official version with WMI support, this will no longer be needed. You can also use SVN to download the OHM source and built it with Visual Studio Express 2010 C# (I've never used the program before in my life and it was trivial to do).
I've built 32 bit and 64 bit versions of the plugin and tested them as much as I can. I'm running Windows 7 64 bit but I've run both DLL's using 32 and 64 bit versions of Rainmeter so I have some hope that they'll work with both apps.
To use this, copy the appropriate plugin to your Rainmeter plugins directory and create a new skin to use it. The required inputs are:
- Hardware: The hardware name string from the OHM GUI (Intel Core i7-2600K, NVIDIA GeForce GTX 570, etc).
- Type: The sensor type string from the OHM GUI (Clocks, Temperatures, Load, etc).
- Type: The sensor type string from the OHM GUI (CPU Total, GPU Core, HDD, etc).
- Debug: [Default=0] Set to 1 or 0 to enable debugging output in the Rainmeter log.
- MaxValueCheck: [Default=1] Set to 1 or 0 to enable sensor maximum value sanity checking. If you make changes in OHM which modify which sensors are read (such as changing HDD sensors), some sensors may be reported in a different order. This check detects that and resets the sensor configuration. It's possible (but unlikely) that this could cause problems but if you see the sensors repeatedly going to zero and back to a value, set this to 0 and check the logs.
If you get a crash or crazy behavior, it would help me if you enable Debug=1 and send me the log file output.
Code: Select all
[measureCPU] Measure=Plugin Plugin=Plugins\OpenHardwareMonitorPlugin.dll Hardware=Intel Core i7-2600K Type=Load Sensor=CPU Total ;Debug=1
- 1.0: Initial release.
- 1.1: Added MaxValueCheck input and updates to check for inconsistent sensor values or number of sensors read to handle the case where OHM changes which sensors it's reading. This can happen if you change the Read HDD Sensors option in OHM while Rainmeter is running.
[JSMorley: Link removed. This plugin is very old, and unsupported by the original author. It should not be used.]
I've attached the source code to this post for anyone who wants to take a look at it. I'd be happy to hear any suggestions you have. This is a VSE 2008 build - if you're using 2010 you will have to grab the source yourself. I believe I've fixed all the build issues for 1.1.