Documentation
¶
Index ¶
Constants ¶
View Source
const ErrorsTopic string = "nilan/errors"
View Source
const ReadingsTopic string = "nilan/readings"
View Source
const SettingsTopic string = "nilan/settings"
Variables ¶
This section is empty.
Functions ¶
func OnOffString ¶
Types ¶
type ErrorsDTO ¶
type ErrorsDTO struct { OldFilter string `json:"old_filter"` OtherErrors string `json:"other_errors"` }
func CreateErrorsDTO ¶
type Readings ¶
type Readings struct { RoomTemperature float32 `json:"room_temp"` OutdoorTemperature float32 `json:"out_temp"` AverageHumidity int `json:"humidity_avg"` ActualHumidity int `json:"humidity"` DHWTankTopTemperature float32 `json:"dhw_top_temp"` DHWTankBottomTemperature float32 `json:"dhw_bottom_temp"` SupplyFlowTemperature float32 `json:"supply_temp"` }
func CreateReadingsDTO ¶
type SettingsDTO ¶
type SettingsDTO struct { FanState string `json:"fan_state"` Speed int `json:"fan_speed"` Mode string `json:"fan_mode"` DHWState string `json:"dhw_state"` CentralHeatingState string `json:"central_heating_state"` RoomTempSetpoint int `json:"room_temp_setpoint"` DHWSetpoint int `json:"dhw_setpoint"` SupplySetpoint int `json:"supply_flow_setpoint"` }
func CreateSettingsDTO ¶
func CreateSettingsDTO(settings nilan.Settings) SettingsDTO
Click to show internal directories.
Click to hide internal directories.