Browse Source

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
pull/1/head
Jan-Jonas Sämann 3 years ago
parent
commit
0fdce24a51
  1. 9
      tools/rpi/ahoy.conf.example
  2. 5
      tools/rpi/ahoy.py

9
tools/rpi/ahoy.conf.example

@ -0,0 +1,9 @@
[mqtt]
host = 192.168.84.2
port = 1883
[dtu]
serial = 99978563412
[inverter]
serial = 444473104619

5
tools/rpi/ahoy.py

@ -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
#...

Loading…
Cancel
Save