Treat config from environment variables
This commit is contained in:
parent
1ef63c3ad4
commit
ee819fe717
1 changed files with 2 additions and 0 deletions
2
main.go
2
main.go
|
@ -180,6 +180,8 @@ type TICWriter interface {
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
parseEnvironmentVariables()
|
||||||
|
|
||||||
var legacyMode = flag.Bool("legacy-mode", false, "Assume teleinformation in legacy mode")
|
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")
|
var pushFrequency = flag.Bool("push-frequency", false, "Also fetch data about the grid frequency")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue