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

@ -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()