config

package
v0.0.0-...-6680cf1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Port    int                  `yaml:"port"`
	Devices []*IconConfiguration `yaml:"devices"`
}

Configuration root

func ReadConfig

func ReadConfig(filepath string) (*Configuration, error)

Returns the config that is read from the file.

type IconConfiguration

type IconConfiguration struct {
	Url      string               `yaml:"url"`
	SysId    string               `yaml:"sysid"`
	Password string               `yaml:"password"`
	Delay    int                  `yaml:"delay"`
	Report   *ReportConfiguration `yaml:"report"`
}

iCON device configuration

type ReportConfiguration

type ReportConfiguration struct {
	// metrics.HttpGauge
	HttpClient *bool `yaml:"httpClient"`
	// metrics.WaterTemperatureGauge
	WaterTemperature *bool `yaml:"waterTemperature"`
	// metrics.ExternalTemperatureGauge
	ExternalTemperature *bool `yaml:"externalTemperature"`
	// metrics.RoomConntectedGauge
	RoomConnected *bool `yaml:"roomConnected"`
	// metrics.RoomTemperatureGauge
	Temperature *bool `yaml:"temperature"`
	// metrics.RoomDewTemperatureGauge
	DewTemperature *bool `yaml:"dewTemperature"`
	// metrics.RelayGauge
	Relay *bool `yaml:"relay"`
	// metrics.HumidityGauge
	Humidity *bool `yaml:"humidity"`
	// metrics.TargetTemperatureGauge
	TargetTemperature *bool `yaml:"targetTemperature"`
}

iCON device report configuration

Jump to

Keyboard shortcuts

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