TeamPracticalProjects/WellSystemMonitor

ENH: Well Pump alert only signals when pump stops

Opened this issue · 0 comments

The current design: When the well pump stops running, the run time is compared to a limit. If the limit is exceeded, then an alert is sent.

Imagine the situation where the pipe between the well head and the reservoir is broken. When the well pump comes on it will run forever because the reservoir is never filled to the point that the float switch will turn off the pump. In this case I think the system owner would like to get an alert when the pump has run longer than the set limit, even if the well pump is still running.

To do this the code would need to remember the last well pump ON event and each time it checks for the limit the code will compute how long the well pump has been running and trigger an alert even though the well pump is still running. Maybe there will be two alerts:
"well pump has been running longer than XX minutes" and "well pump has run for YY minutes".