diff --git a/host/host.go b/host/host.go index ee9486369..6e8e369cf 100644 --- a/host/host.go +++ b/host/host.go @@ -43,6 +43,7 @@ type UserStat struct { type TemperatureStat struct { SensorKey string `json:"sensorKey"` Temperature float64 `json:"temperature"` + Low float64 `json:"sensorLow"` High float64 `json:"sensorHigh"` Critical float64 `json:"sensorCritical"` } diff --git a/host/host_linux.go b/host/host_linux.go index 5d4c1a90f..04847126e 100644 --- a/host/host_linux.go +++ b/host/host_linux.go @@ -506,6 +506,7 @@ func SensorsTemperaturesWithContext(ctx context.Context) ([]TemperatureStat, err temperatures = append(temperatures, TemperatureStat{ SensorKey: name, Temperature: temperature / hostTemperatureScale, + Low: optionalValueReadFromFile(basepath+"_min") / hostTemperatureScale, High: optionalValueReadFromFile(basepath+"_max") / hostTemperatureScale, Critical: optionalValueReadFromFile(basepath+"_crit") / hostTemperatureScale, })