turing-smart-screen-python icon indicating copy to clipboard operation
turing-smart-screen-python copied to clipboard

Add memory/SSD temperatures

Open kimholviala opened this issue 2 years ago • 2 comments

Would be nice to be able to show memory and SSD temperatures as those two components can run quite warm in smaller PC cases. I'm pretty sure LibreHardwareMonitor already supports those two sensors.

kimholviala avatar Feb 27 '23 14:02 kimholviala

You're right, LHM does have sensors for disk temperatures, but the System Monitor does not really monitor disks for now, it monitors disk partitions (free/used space are partition metrics) So before implementing this, it would be needed to add proper disk support in the system monitor, as well as keeping existing partitions support, and find a prioper way to select disk(s) & partition(s) to monitor

mathoudebine avatar Mar 01 '23 21:03 mathoudebine

I have this working with LHM using the following in the LHM Sensor

@staticmethod
def temperature() -> int:
    disk = get_hw_and_update(Hardware.HardwareType.Storage)
    for sensor in disk.Sensors:
        if sensor.SensorType == Hardware.SensorType.Temperature and str(sensor.Name).startswith("Temperature 1"):
            return int(sensor.Value)
    return temperature

BustedTaint avatar Apr 27 '23 00:04 BustedTaint