Im using Open Hardware Monitor 0.9.5 for getting some information about my hardware like cpu temp, speed, gpu temp, speed, ram but now i need to upgrade and getting also the Voltage.
So im using this code from 2 years without problem:
myComputer = new Computer();
myComputer.Open();
myComputer.CPUEnabled = true;
myComputer.GPUEnabled = true;
myComputer.MainboardEnabled = true;
myComputer.RAMEnabled = true;
myComputer.FanControllerEnabled = true;
myComputer.HDDEnabled = true;
foreach (var hardwareItem in myComputer.Hardware)
{
hardwareItem.Update();
hardwareItem.GetReport();
//var series = new LineSeries();
foreach (var sensor in hardwareItem.Sensors)
{
if (sensor.SensorType == SensorType.Clock)
{
MessageBox.Show(sensor.Value.ToString());
}
}
Ok so for voltage i just change the SensorType to Voltage:
if (sensor.SensorType == SensorType.Voltage)
{
MessageBox.Show(sensor.Value.ToString());
}
But in this case no message, no data and no voltage, so i think i miss some code, or it is a bug?
