controllers

package
v0.0.0-...-1d50835 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CurrentTemp float64 = 20
	TargetTemp          = 18.5 // if temp hits target, switch off
	Threshold           = 0.1  // if delta goes below threshold, switch on
)

Functions

func Start

func Start()

func Tick

func Tick()

Types

type PlugState

type PlugState struct {
	State string `json:"state"`
}

type TemperatureResponse

type TemperatureResponse struct {
	Temperature float64 `json:"temperature"`
	HeatIndex   float64 `json:"heat_index"`
	Humidity    float64 `json:"humidity"`
}

Jump to

Keyboard shortcuts

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