diff --git a/tools/rpi/ahoy.conf.example b/tools/rpi/ahoy.conf.example new file mode 100644 index 00000000..77338d00 --- /dev/null +++ b/tools/rpi/ahoy.conf.example @@ -0,0 +1,9 @@ +[mqtt] +host = 192.168.84.2 +port = 1883 + +[dtu] +serial = 99978563412 + +[inverter] +serial = 444473104619 diff --git a/tools/rpi/ahoy.py b/tools/rpi/ahoy.py index 2757a227..6ae698d9 100644 --- a/tools/rpi/ahoy.py +++ b/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 #...