How it works
Polls a Modbus TCP pump station controller every 5 seconds for inlet well level, outlet pressure, flow rate, and two pump drive signals, then assembles the full station state into a PumpStationModel snapshot on every level reading. The snapshot is immediately stored to PostgreSQL through a topic-triggered route, building a continuous historian with no polling overhead. A dedicated alarm action monitors level and pressure against configurable thresholds, publishing structured AlarmModel fault and recovery events with deduplication flags so each condition logs exactly once on onset and once on recovery. An optional simulator cycles through high-level, low-level, and overpressure fault scenarios to validate the full pipeline before hardware is connected.
When to use it
Ideal for water utilities, municipal pump stations, and lift stations that need real-time sensor visibility alongside a reliable audit trail. Works with any Modbus TCP-compatible pump controller adapt the host, slave ID, and register addresses to your device datasheet.
