Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeEnabled ¶
ChangeEnabled rewrites an Automation config with the first "Enabled = <bool>" changed to the supplied state.
func CheckMainConfig ¶
CheckMainConfig performs a simple sanity check on the main config.toml and its directory
Types ¶
type MainConfigT ¶
type MainConfigT struct { SystemName string Longitude, Latitude float64 MqttBroker string MqttPort int MqttUsername string MqttPassword string MqttClientID string MqttBaseTopic string Integrations []string ControlPort int ConfigDir string }
A MainConfigT holds the top-level configuration details
func LoadMainConfig ¶
func LoadMainConfig(configDir string) (MainConfigT, error)
LoadMainConfig does what it says on the tin
Click to show internal directories.
Click to hide internal directories.