sens

package
v0.0.0-...-eac16e3 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: GPL-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BASE_PATH string = "/sys/class/hwmon/"

Functions

func PrintSensorStats

func PrintSensorStats(t template.Template)

Types

type DeviceStat

type DeviceStat struct {
	Name      string            `json:"Name"`
	LowValue  float64           `json:"LowValue"`
	HighValue float64           `json:"HighValue"`
	Stats     []TemperatureStat `json:"Stats"`
}

a list of stats for this device

type SensorsStats

type SensorsStats struct {
	Devices []DeviceStat
}

type TemperatureStat

type TemperatureStat struct {
	Label       string
	CurrentTemp float64
}

Jump to

Keyboard shortcuts

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