hardcode inverter address
This commit is contained in:
parent
469958ecfc
commit
f56147f720
1 changed files with 3 additions and 2 deletions
5
main.go
5
main.go
|
@ -39,8 +39,9 @@ import (
|
|||
const maxScrapeAge = 3 * time.Second
|
||||
|
||||
var (
|
||||
httpAddr = flag.String("http-addr", ":9455", "Address to listen on")
|
||||
inverterAddrs = flag.String("inverter-addrs", "rakmodule_00DBC1:502,192.168.86.6:502", "Comma-separated list of inverter addresses (modbus-tcp with 'encryption')")
|
||||
httpAddr = flag.String("http-addr", ":9455", "Address to listen on")
|
||||
// rakmodule_00DBC1:502,
|
||||
inverterAddrs = flag.String("inverter-addrs", "192.168.86.6:502", "Comma-separated list of inverter addresses (modbus-tcp with 'encryption')")
|
||||
scrapeInterval = flag.Duration("scrape-interval", 15*time.Second, "Period of modbus scraping loop")
|
||||
|
||||
promHandler = promhttp.Handler()
|
||||
|
|
Loading…
Reference in a new issue