Documentation ¶
Index ¶
- Constants
- type Control
- type DS18B20
- type External
- type Kettle
- func (k *Kettle) Metric() KettleMetric
- func (k *Kettle) Off()
- func (k *Kettle) On()
- func (k *Kettle) TempCompare(last float64, temp float64) bool
- func (k *Kettle) TempHold(stop chan struct{}, tempTo float64, timeout time.Duration) error
- func (k *Kettle) TempSet(temp float64) (current float64, err error)
- func (k *Kettle) TempUp(stop chan struct{}, tempTo float64) error
- type KettleMetric
- type SSR
- type SSRDummy
- type Signal
- type TempDummy
- type TempSensor
Constants ¶
const CancelErr = "cancel"
CancelErr error if process not finish correctly
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DS18B20 ¶
DS18B20 temperatur sensor with 1-wire protocol
func DS18B20Reg ¶
DS18B20Reg register a valid Path for DS18B20 and return a DS18B20 struct
type External ¶
type External struct { Cmd string // contains filtered or unexported fields }
External implements a external programm to control. no args, fix
type Kettle ¶
type Kettle struct { Temp TempSensor Heater Control Agitator Control // contains filtered or unexported fields }
Kettle is the pod unit with Temp, Heater and Agitator
func (*Kettle) Metric ¶
func (k *Kettle) Metric() KettleMetric
Metric returns current Metrics from Kettle
func (*Kettle) TempCompare ¶
TempCompare checks the temp and sate of the kettle
func (*Kettle) TempHold ¶
TempHold control the Heater to hold a given temperature. You can set a duration or 0 (unlimited) Its a blocking function which you can stop with the stop channel
type KettleMetric ¶
KettleMetric for access internal Metrics from outside
type SSR ¶
SSR struct with gpio pin for a SSR relay
type SSRDummy ¶
type SSRDummy struct {
// contains filtered or unexported fields
}
SSRDummy is a dummy SSR relay
type Signal ¶
Signal implements control over a gpio pin via 433MHZ signals
type TempSensor ¶
TempSensor interface to Get() data from sensor