From b417f7853568a1fac2aeff1494997f64c680bb33 Mon Sep 17 00:00:00 2001 From: Nico Melone Date: Thu, 27 Feb 2020 10:46:23 -0600 Subject: [PATCH] Updated run status logic --- flow-monitor/config.txt | 2 +- flow-monitor/flow-monitor.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/flow-monitor/config.txt b/flow-monitor/config.txt index 3bb4431..e3d23bc 100644 --- a/flow-monitor/config.txt +++ b/flow-monitor/config.txt @@ -6,6 +6,6 @@ }, "deviceName": "flowmonitor", "driverId": "0140", - "releaseVersion": "19", + "releaseVersion": "20", "driverFileName": "flow-monitor.py" } \ No newline at end of file diff --git a/flow-monitor/flow-monitor.py b/flow-monitor/flow-monitor.py index 3c00ec1..c0eab6f 100644 --- a/flow-monitor/flow-monitor.py +++ b/flow-monitor/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: