Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SensorsPath string = "/sys/bus/w1/devices"
Functions ¶
func SendReadings ¶
func SendReadings(readings []SensorReading, endpoint string, token string, verbose bool) error
Types ¶
type SensorReading ¶
type SensorReading struct { SensorHwId string `json:"hwId"` Temperature float32 `json:"temperature"` Resolution int `json:"resolution"` }
func GetReadings ¶
func GetReadings(fs afero.Afero, sensors []string) ([]SensorReading, error)
Click to show internal directories.
Click to hide internal directories.