temp

package module
v0.0.0-...-7fb6c79 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: BSD-3-Clause Imports: 7 Imported by: 1

README

temp

Merliot Temperature/Humidity Device

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(id, model, name string) dean.Thinger

Types

type MsgUpdate

type MsgUpdate struct {
	Path        string
	Temperature float32
	Humidity    float32
}

type Record

type Record [2]float32

type Temp

type Temp struct {
	*device.Device
	Dht     dht.Dht
	History []Record
}

func (*Temp) Run

func (t *Temp) Run(i *dean.Injector)

func (*Temp) ServeHTTP

func (t *Temp) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Temp) Setup

func (t *Temp) Setup()

func (*Temp) Subscribers

func (t *Temp) Subscribers() dean.Subscribers

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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