Recent
Task:Add pump station overview dashboard
Branch:Main development branch — pump station project
I'll create the pump station overview dashboard. Let me read the existing Modbus register map and wire up the VFD status, flow meter, and tank level sensor.
from pymodbus.client import ModbusTcpClient
from src.modbus_config import MODBUS_CONFIG
class TankLevel:
TAG = "TK-101.LVL"
UNIT = "%"
ALARM_HIGH = 90
def read(self, client: ModbusTcpClient):
result = client.read_holding_registers(40001, 1)
return result.registers[0] / 10.0
The dashboard is ready. It polls VFD status registers at 40001–40003 via Modbus TCP and raises alarms when tank level exceeds 90%.