Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultPort = 8080
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port int `json:"port"` Sensors map[string]SensorConfig `json:"sensors"` Zones map[string]ZoneConfig `json:"zones"` }
type SensorConfig ¶
type ThermostatConfig ¶
type ThermostatConfig struct { Sensor string `json:"sensor"` DefaultTarget units.Temperature `json:"default_target"` }
type ZoneConfig ¶
type ZoneConfig struct { Virtual bool `json:"virtual"` GPIOPin int `json:"gpio_pin"` Thermostat *ThermostatConfig `json:"thermostat"` }
Click to show internal directories.
Click to hide internal directories.