Updated run status logic
This commit is contained in:
@@ -6,6 +6,6 @@
|
||||
},
|
||||
"deviceName": "flowmonitor",
|
||||
"driverId": "0140",
|
||||
"releaseVersion": "19",
|
||||
"releaseVersion": "20",
|
||||
"driverFileName": "flow-monitor.py"
|
||||
}
|
||||
@@ -184,7 +184,7 @@ class start(threading.Thread, deviceBase):
|
||||
self.force_send = False
|
||||
|
||||
self.daemon = True
|
||||
self.version = "19"
|
||||
self.version = "20"
|
||||
self.finished = threading.Event()
|
||||
threading.Thread.start(self)
|
||||
|
||||
@@ -379,6 +379,8 @@ class start(threading.Thread, deviceBase):
|
||||
runstatus = "Stopped" #Stopped
|
||||
elif din1_val == 0 and gpm_val > 10:
|
||||
runstatus = "Running" #Assumed running might not have run indication
|
||||
elif din1_val == 0 and gpm_val > 0:
|
||||
runstatus = "Running: Low Flow"
|
||||
elif din1_val == 1 and gpm_val == 0:
|
||||
runstatus = "Running: No Flow" #no flow warning
|
||||
elif din1_val == 1 and gpm_val < self.lowflow:
|
||||
|
||||
Reference in New Issue
Block a user