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 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
gen-uf2 command

Jump to

Keyboard shortcuts

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