package sensors

import "github.com/shirou/gopsutil/v4/sensors"

Index

Types

type TemperatureStat

type TemperatureStat struct {
	SensorKey   string  `json:"sensorKey"`
	Temperature float64 `json:"temperature"`
	High        float64 `json:"sensorHigh"`
	Critical    float64 `json:"sensorCritical"`
}

func SensorsTemperatures

func SensorsTemperatures() ([]TemperatureStat, error)

func TemperaturesWithContext

func TemperaturesWithContext(ctx context.Context) ([]TemperatureStat, error)

func (TemperatureStat) String

func (t TemperatureStat) String() string

type Warnings

type Warnings = common.Warnings

Source Files

sensors.go sensors_fallback.go

Version
v4.24.6
Published
Jun 25, 2024
Platform
js/wasm
Imports
3 packages
Last checked
3 days ago

Tools for package owners.