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
|
const maxScrapeAge = 3 * time.Second
|
||||||
|
|
||||||
var (
|
var (
|
||||||
httpAddr = flag.String("http-addr", ":9455", "Address to listen on")
|
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')")
|
// 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")
|
scrapeInterval = flag.Duration("scrape-interval", 15*time.Second, "Period of modbus scraping loop")
|
||||||
|
|
||||||
promHandler = promhttp.Handler()
|
promHandler = promhttp.Handler()
|
||||||
|
|
Loading…
Reference in a new issue