From 224d52d1033d8ccce5087c9bee5a63457830a13a Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 20 Dec 2025 14:11:13 +0100 Subject: Use default config The default config JSON is embedded as bytes into the executable. Instead of constants the default values are now parsed from these embedded bytes. --- main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 0e51a44..128720f 100644 --- a/main.go +++ b/main.go @@ -11,10 +11,12 @@ func main() { log.Println("+++ Started Sia server +++") defer log.Println("--- Stopped Sia server ---") + config := GetStartupConfig() + tx := make(chan MQTTMessage) - go MQTTRun(tx) - go HomematicRun(tx) + go MQTTRun(config.MQTT, tx) + go HomematicRun(config.Homematic, tx) Await(syscall.SIGTERM, syscall.SIGINT) } -- cgit v1.2.3-70-g09d2