update readme & add example HA config files

This commit is contained in:
David
2019-05-29 11:37:38 +10:00
parent f6c8d92f5e
commit 5edafe0ddc
16 changed files with 303 additions and 39 deletions
+5 -4
View File
@@ -1,11 +1,12 @@
#!/bin/bash
export TERM=xterm
# Init the mqtt server for the first time...
bash /opt/voltronic-mqtt/mqtt-init.sh
# Init the mqtt server for the first time, then every 5 minutes
# This will re-create the auto-created topics in the MQTT server if HA is restarted...
watch -n 300 /opt/voltronic-mqtt/mqtt-init.sh > /dev/null 2>&1 &
# Run the MQTT Subscriber process in the background (so that way we can change the configuration on the inverter from home assistant)
/opt/voltronic-mqtt/mqtt-subscriber.sh &
# execute exactly ever minute...
watch -n 30 /opt/voltronic-mqtt/mqtt-push.sh # > /dev/null 2>&1
# execute exactly every 30 seconds...
watch -n 30 /opt/voltronic-mqtt/mqtt-push.sh > /dev/null 2>&1