fix period

This commit is contained in:
Wolfgang Hottgenroth 2016-07-11 21:07:47 +02:00
parent 53e75d98c1
commit 50af4ebcaa

View File

@ -41,7 +41,7 @@ mqttClient.loop_start()
try:
while True:
time.sleep(5)
time.sleep(60)
now = datetime.datetime.now()
secondsSinceMidnight = now.second + now.minute * 60 + now.hour * 60 * 60
mqttClient.publish('IoT/SecondsSinceMidnight', str(secondsSinceMidnight))