Update ahoy.py make dtu and inverter serial configurable

Adds config file support for dtu and inverter serial numbers to keep them
outside this repo
This commit is contained in:
Jan-Jonas Sämann 2022-04-04 23:33:20 +02:00
parent 51afd1298d
commit 0fdce24a51
2 changed files with 11 additions and 3 deletions

View file

@ -24,11 +24,10 @@ mqtt_client = paho.mqtt.client.Client()
mqtt_client.connect(mqtt_host, mqtt_port)
# Master Address ('DTU')
dtu_ser = 99978563412 # identical to fc22's
dtu_ser = cfg.get('dtu', 'serial', fallback='99978563412') # identical to fc22's
# inverter serial numbers
#inv_ser = 444473104619 # identical to fc22's #99972220200
inv_ser = 114174608145 # my inverter
inv_ser = cfg.get('inverter', 'serial', fallback='444473104619') # my inverter
# all inverters
#...