Added ability to load topics from a configuration file in the root directory. Dew point calculation seems to be off though.
This commit is contained in:
@@ -22,7 +22,7 @@ if environment.envVars.appEnv == .production {
|
||||
logger.logLevel = .info
|
||||
}
|
||||
|
||||
let relay = Relay(topic: environment.topics.relays.dehumidification1)
|
||||
let relay = Relay(topic: environment.topics.commands.relays.dehumidification1)
|
||||
let tempSensor = Sensor<Temperature>(topic: environment.topics.sensors.temperature)
|
||||
let humiditySensor = Sensor<RelativeHumidity>(topic: environment.topics.sensors.humidity)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user