dto

package
v0.0.0-...-41639d0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 1 Imported by: 0

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 FanSpeed

func FanSpeed(speed int) *nilan.FanSpeed

func Mode

func Mode(mode string) *int

func OnOffString

func OnOffString(on bool) string

Types

type ErrorsDTO

type ErrorsDTO struct {
	OldFilter   string `json:"old_filter"`
	OtherErrors string `json:"other_errors"`
}

func CreateErrorsDTO

func CreateErrorsDTO(errors nilan.Errors) ErrorsDTO

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

func CreateReadingsDTO(readings nilan.Readings) Readings

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

Jump to

Keyboard shortcuts

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