README ¶ temp Merliot Temperature/Humidity Device Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func New(id, model, name string) dean.Thinger type MsgUpdate type Record type Temp func (t *Temp) Run(i *dean.Injector) func (t *Temp) ServeHTTP(w http.ResponseWriter, r *http.Request) func (t *Temp) Setup() func (t *Temp) Subscribers() dean.Subscribers 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 Source Files ¶ View all Source files temp-linux.go temp.go Directories ¶ Show internal Expand all Path Synopsis cmd gen-uf2 Click to show internal directories. Click to hide internal directories.