This commit is contained in:
2020-03-17 10:02:00 -05:00
parent b417f78535
commit cafbc9dcf1
15 changed files with 1387 additions and 63 deletions

View File

@@ -2,7 +2,7 @@
"driverFileName": "submonitor.py",
"deviceName": "submonitor",
"driverId": "0210",
"releaseVersion": "4",
"releaseVersion": "5",
"files": {
"file1": "submonitor.py",
"file2": "modbusMap.p"

View File

@@ -36,7 +36,7 @@ class start(threading.Thread, deviceBase):
deviceBase.__init__(self, name=name, number=number, mac=mac, Q=Q, mcu=mcu, companyId=companyId, offset=offset, mqtt=mqtt, Nodes=Nodes)
self.daemon = True
self.version = "4"
self.version = "5"
self.finished = threading.Event()
self.forceSend = False
threading.Thread.start(self)
@@ -45,7 +45,7 @@ class start(threading.Thread, deviceBase):
# about your device so it can be seen on the web
def register(self):
"""Register the driver."""
self.sendtodb("log", "BOOM! Booted.", 0)
#self.sendtodb("log", "BOOM! Booted.", 0)
pass
def run(self):
@@ -55,7 +55,7 @@ class start(threading.Thread, deviceBase):
print("submonitor driver will start in {} seconds".format(wait_sec - i))
time.sleep(1)
logger.info("BOOM! Starting submonitor driver...")
self.sendtodb("log", "BOOM! Starting submonitor driver...", 0)
#self.sendtodb("log", "BOOM! Starting submonitor driver...", 0)
while True:
time.sleep(15)