sensors

package
v4.25.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2025 License: BSD-3-Clause Imports: 8 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExLinux

type ExLinux struct{}

func NewExLinux

func NewExLinux() *ExLinux

func (*ExLinux) TemperatureWithContext

func (ex *ExLinux) TemperatureWithContext(ctx context.Context) ([]ExTemperature, error)

type ExTemperature

type ExTemperature struct {
	SensorKey string  `json:"key"`
	Min       float64 `json:"min"`     // Temperature min value.
	Lowest    float64 `json:"lowest"`  // Historical minimum temperature
	Highest   float64 `json:"highest"` // Historical maximum temperature
}

ExTemperature represents Linux dependent temperature sensor data

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL