Changes sleep schedule to allow longer on-time

This commit is contained in:
Patrick McDonagh
2017-02-15 16:35:13 -06:00
parent ec72749c2a
commit 4faa6aa296
2 changed files with 4 additions and 4 deletions

View File

@@ -14,10 +14,10 @@ class start(threading.Thread, deviceBase):
mqtt=mqtt, Nodes=Nodes)
self.daemon = True
self.version = "2"
self.version = "3"
self.finished = threading.Event()
threading.Thread.start(self)
self.sleep_minutes = 25
self.sleep_minutes = 20
# this is a required function for all drivers
# its goal is to upload some piece of data
@@ -29,6 +29,6 @@ class start(threading.Thread, deviceBase):
self.sendtodb('sleeplog', "I'm awake!", 0)
while (True):
t = datetime.now()
if (t.minute == 5 or t.minute == 35):
if (t.minute == 10 or t.minute == 30):
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":"2",
"releaseVersion":"3",
"files": {
"file1":"abbflow.py",
"file2":"modbusMap.p" }