ADDED:
* Much more functions to tplx/sprigx
This commit is contained in:
brent saner
2026-01-29 19:02:21 -05:00
parent 64a7648fbc
commit 1bd6e1256c
18 changed files with 3036 additions and 1489 deletions

View File

@@ -0,0 +1,15 @@
package sprigx
import (
`context`
`github.com/shirou/gopsutil/v4/sensors`
)
// psSensorExTemp wraps github.com/shirou/gopsutil/v4/sensors.NewExLinux().TemperatureWithContext() to not require a context.
func psSensorExTemp() (exTemps []sensors.ExTemperature, err error) {
exTemps, err = sensors.NewExLinux().TemperatureWithContext(context.Background())
return
}