env

package
v0.0.0-...-f74b716 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	String() string
	StringJSON() (string, error)
	IsConnected() error
}

type Hum

type Hum struct {
	T float32 `json:"temp"`
	H float32 `json:"hum"`
}

func (*Hum) String

func (g *Hum) String() (string, error)

type HumDevice

type HumDevice struct {
	Time string `json:"datetime"`
	Name string `json:"sensor"`
	Data Hum    `json:"data"`
}

func (*HumDevice) String

func (g *HumDevice) String() (string, error)

type HumDriver

type HumDriver interface {
	Driver
	GetHumTemp() (float32, float32, error)
}

type Temp

type Temp struct {
	T float32 `json:"temp"`
}

func (*Temp) String

func (g *Temp) String() (string, error)

type TempDevice

type TempDevice struct {
	Time string `json:"datetime"`
	Name string `json:"sensor"`
	Data Temp   `json:"data"`
}

func (*TempDevice) String

func (g *TempDevice) String() (string, error)

type TempDriver

type TempDriver interface {
	Driver
	GetTemp() (float32, error)
}

Directories

Path Synopsis
Driver for the HIH6030 temperature/humidity sensor https://sensing.honeywell.com/HIH6030-021-001-humidity-sensors https://sensing.honeywell.com/i2c-comms-humidicon-tn-009061-2-en-final-07jun12.pdf
Driver for the HIH6030 temperature/humidity sensor https://sensing.honeywell.com/HIH6030-021-001-humidity-sensors https://sensing.honeywell.com/i2c-comms-humidicon-tn-009061-2-en-final-07jun12.pdf
Driver for the MCP9808 temperature sensor https://www.microchip.com/wwwproducts/en/en556182
Driver for the MCP9808 temperature sensor https://www.microchip.com/wwwproducts/en/en556182
Driver for the SHTC3 temperature/humidity sensor https://www.mouser.sg/datasheet/2/682/Sensirion_Humidity_Sensors_SHTC3_Datasheet-1386761.pdf
Driver for the SHTC3 temperature/humidity sensor https://www.mouser.sg/datasheet/2/682/Sensirion_Humidity_Sensors_SHTC3_Datasheet-1386761.pdf

Jump to

Keyboard shortcuts

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