utils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version    = "0.0.4"
	LoggerName = "raspi-sensors"
)

Variables

View Source
var ErrNoPackageManagerFound = errors.New("no package manager found")

Functions

func GetPmicTemperature added in v0.0.2

func GetPmicTemperature() (Temperature float64, Err error)

func GetSoCTemperature added in v0.0.2

func GetSoCTemperature() (Temperature float64, Err error)

func InstallPackage

func InstallPackage(packageName string) error

Types

type BoardType added in v0.0.4

type BoardType string
var (
	Unknown      BoardType = "Unknown"
	RaspberryPi4 BoardType = "Raspberry Pi 4"
	RaspberryPi5 BoardType = "Raspberry Pi 5"
)

func GetBoardType added in v0.0.4

func GetBoardType() (BoardType, error)

Jump to

Keyboard shortcuts

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