From ee819fe717c83f13b1f13d111a9f3b78a6a2b1c6 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Wed, 2 Aug 2023 20:06:15 +0200 Subject: [PATCH] Treat config from environment variables --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index b8ebe04..9bc315d 100644 --- a/main.go +++ b/main.go @@ -180,6 +180,8 @@ type TICWriter interface { } func main() { + parseEnvironmentVariables() + var legacyMode = flag.Bool("legacy-mode", false, "Assume teleinformation in legacy mode") var pushFrequency = flag.Bool("push-frequency", false, "Also fetch data about the grid frequency") flag.Parse()