openhardwaremonitor

Can't get OpenHardwareMonitorLib.dll to work

左心房为你撑大大i 提交于 2019-12-12 01:36:41
问题 I've found very few examples of how to get OHM working in c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using OpenHardwareMonitor.Hardware; namespace OpenHardwareMonitorReport { class Program { static void Main(string[] args) { Computer computer = new Computer(); computer.Open(); var temps = new List<decimal>(); foreach (var hardware in computer.Hardware) { if (hardware.HardwareType != HardwareType.CPU) continue; hardware.Update(); foreach (var

Get CPU Temperature using Open Hardware Monitor

安稳与你 提交于 2019-12-06 08:07:07
问题 I am trying to use the OpenHardwareMonitorLib DLL to get the temperature of my CPU \ cores, however this doesn't return the temperature for me. I have looked around and seen that this is a problem almost everywhere but I cannot get this to work. I would be very appreciative if someone can tell me where I am going wrong with this. This is my code: using System; using System.Linq; using System.Management; using OpenHardwareMonitor.Collections; using OpenHardwareMonitor.Hardware; using OxyPlot;