Documentation ¶
Overview ¶
This package handles how the config is structrured
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ Sensor: Sensor{ OperationMode: OperationMode{ Main: "all", Secondary: "gas", }, FanCleaningInterval: 604800, ForceCleanFan: false, RthAccelerationMode: 0, TemperatureOffset: 0, }, Measurement: Measurement{ WaitBetweenMeasurements: 0, TakeMeasurementsFor: 300, SleepUntilNextBatchOfMeasurements: 300, IgnoreFirstXMeasurements: 30, }, Console: Console{ Enabled: true, }, SensorCommunity: SensorCommunity{ Enabled: false, SensorNodeID: "raspi-123456789", }, DataLogging: DataLogging{ Enabled: true, FileName: "", }, }
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Sensor Sensor Measurement Measurement Console Console DataLogging DataLogging SensorCommunity SensorCommunity }
func LoadConfig ¶
type DataLogging ¶
type Measurement ¶
type OperationMode ¶
type Sensor ¶
type Sensor struct { OperationMode OperationMode FanCleaningInterval int ForceCleanFan bool RthAccelerationMode int TemperatureOffset float32 }
type SensorCommunity ¶
Click to show internal directories.
Click to hide internal directories.