Class LhmSensor

java.lang.Object
oshi.driver.common.windows.wmi.LhmSensor

@ThreadSafe public class LhmSensor extends Object
Constants, property enums, and WHERE clause builders for LibreHardwareMonitor WMI sensor data.

LHM publishes sensor data to ROOT\LibreHardwareMonitor when it is running. This class provides the shared constants and query builders for the Sensor and Hardware tables.

  • Field Details

  • Constructor Details

    • LhmSensor

      protected LhmSensor()
  • Method Details

    • buildSensorWmiClassNameWithWhere

      public static String buildSensorWmiClassNameWithWhere(String parent, String sensorType)
      Builds the WMI class name with WHERE clause for sensor queries.
      Parameters:
      parent - the LHM hardware identifier (e.g. /gpu-nvidia/0)
      sensorType - the sensor type string (e.g. "Load", "SmallData")
      Returns:
      the WMI class name with WHERE clause
    • buildGpuHardwareWmiClassName

      public static String buildGpuHardwareWmiClassName()
      Builds the WMI class name with WHERE clause for GPU hardware queries.
      Returns:
      the WMI class name with WHERE clause filtering GPU hardware types