public interface Sensors
Drivers may or may not exist to collect this data depending on the installed hardware and Operating System. In addition, software-hardware communication may suffer intermittent errors when attempting to access this information. Users should expect, test for, and handle zero values and/or empty arrays which will result if the OS is unable to provide the information.
Windows information is retrieved via Windows Management Instrumentation (WMI). Unfortunately, most hardware providers do not publish values to WMI. If a value is not available through the Microsoft API, Oshi will attempt to retrieve values as published to WMI by Open Hardware Monitor if it is running.
Modifier and Type | Method and Description |
---|---|
double |
getCpuTemperature()
CPU Temperature
|
double |
getCpuVoltage()
CPU Voltage
|
int[] |
getFanSpeeds()
Fan speeds
|
double getCpuTemperature()
int[] getFanSpeeds()
double getCpuVoltage()
Copyright © 2010–2020 oshi. All rights reserved.