Fixes sleep error. Increments version to 4

This commit is contained in:
Patrick McDonagh
2017-02-22 12:28:20 -06:00
parent 4faa6aa296
commit 42afcda071
2 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ class start(threading.Thread, deviceBase):
mqtt=mqtt, Nodes=Nodes)
self.daemon = True
self.version = "3"
self.version = "4"
self.finished = threading.Event()
threading.Thread.start(self)
self.sleep_minutes = 20
@@ -29,6 +29,6 @@ class start(threading.Thread, deviceBase):
self.sendtodb('sleeplog', "I'm awake!", 0)
while (True):
t = datetime.now()
if (t.minute == 10 or t.minute == 30):
if (t.minute == 10 or t.minute == 40):
self.sendtodb('sleeplog', "Going to sleep...", 0)
self.mcu.sleep(self.sleep_minutes * 60)

View File

@@ -3,7 +3,7 @@
"driverFileName":"abbflow.py",
"deviceName":"abbflow",
"driverId":"0110",
"releaseVersion":"3",
"releaseVersion":"4",
"files": {
"file1":"abbflow.py",
"file2":"modbusMap.p" }