Template:Leak detector description
The Intelligent Leak Detector is used to generate warning for potential water or other quantities leaks by analyzing any generic flow counter.
The detector should be called at regular intervals, possibly faster than the minimum time needed for the counter to increment its value by one.
It will generate a leak warning when the measured flow remains relatively constant over a certain amount of time.
Use this function at your own risk!
The Intelligent Leak Detector uses a correlation algorithm to distinguish between a constant flow and an irregular flow. A relatively constant flow over a certain amount of time is considered as a potential leak and generates a leak event.
In some conditions, also depending on the type of flow counter used, this algorithm could fail from properly and timely recognizing a real leak, or it could generate false leak warnings.
Use different names to implement multiple independent leak detectors.