hardcode inverter address

This commit is contained in:
Josh Deprez 2024-07-27 13:12:33 +10:00
parent 469958ecfc
commit f56147f720
Signed by: josh
SSH key fingerprint: SHA256:zZji7w1Ilh2RuUpbQcqkLPrqmRwpiCSycbF2EfKm6Kw

View file

@ -40,7 +40,8 @@ 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')")
// 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()