diff --git a/.gitignore b/.gitignore index 6b06042..4391fe3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ venv/** *.log -.idea/** \ No newline at end of file +.idea/** +*.log.gz diff --git a/client/client.py b/client/client.py index e2f708a..87d638f 100644 --- a/client/client.py +++ b/client/client.py @@ -73,7 +73,7 @@ def on_log(client, obj, level, string): # but note that the client id must be unique on the broker. Leaving the client # id parameter empty will generate a random id for you. -client_id = 'mqtt-client-solaria' +client_id = 'mqtt-client-pimirror2' mqttc = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2, client_id) mqttc.on_message = on_message diff --git a/run-on-pi.sh b/run-on-pi.sh index 437cbd8..62a0dfa 100755 --- a/run-on-pi.sh +++ b/run-on-pi.sh @@ -7,6 +7,10 @@ counter=0 max_counter=120 max_restart_counter=20 + +echo "$(date '+%Y%m%d%H%M%S'): Starting and waitintg 15s " +sleep 15 + echo "$(date '+%Y%m%d%H%M%S'): checking connectivity" while [ $(ping -q -w 3 -c 1 192.168.31.5 > /dev/null && echo 1 || echo 0) -eq 0 ]; do