system

package
v0.0.0-...-983d7c1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DistroInfo

func DistroInfo() (string, error)

Return the contents of /proc/version file

func MeasureCPUTemp

func MeasureCPUTemp() (float64, error)

Measure Pi CPU temperature (C)

func MeasureGPUTemp

func MeasureGPUTemp() (float64, error)

Measure Pi GPU temperature (C) using /usr/bin/vcgencmd measure_temp

Types

type PiInfo

type PiInfo struct {
	Hardware string
	Revision string
	Serial   string
	Model    string
}

Represent the information about the Pi Board

func GetPiInfo

func GetPiInfo() PiInfo

extracted from the /proc/cpuinfo file

Jump to

Keyboard shortcuts

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