weatherstation

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	CheckSensorConnectivity()
	ReadData() (temperature, pressure, humidity int32, err error)
	DisplayData(temperature, pressure, humidity int32)
	GetFormattedReadings(temperature, pressure, humidity int32) (temp, press, hum string)
	SavePressureReading(pressure float64)
	CheckAlert(alertThreshold float64, timeSpan int8) (bool, float64)
}

func New

func New(sensor *bme280.Device, display *st7735.Device) Service

Jump to

Keyboard shortcuts

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