← All work

In progress

Sightline: plant visibility above the cell

The management view of a plant with several lines and dozens of stations: live state, OEE, alarms, shift reports and the health of every data source.

Stack OPC UA, asyncua, FastAPI, TimescaleDB, SvelteKit, WebSocket

What it is

One screen that tells a plant manager how the plant is doing right now, and one that tells the shift leader why the last shift went the way it did. Sightline sits above any single cell: a tile per line, a strip of stations under it, the plant’s numbers at the top, and the alarms that need a decision.

Five screens: plant overview, line detail with cycle-time trend and downtime Pareto, alarms and events with acknowledgement, shift and OEE reports with a real CSV export, and the data sources, one OPC UA server per line, with their subscription counts and last update.

How it is built

flowchart LR
    OPC[OPC UA servers<br/>one per line] -->|subscriptions| GW[Gateway<br/>asyncua]
    GW --> RB[(ring buffer)]
    RB --> WS[WebSocket fan-out]
    RB --> TS[(TimescaleDB writer)]
    RB --> AL[Alarm evaluation]
    WS --> UI[Dashboard<br/>SvelteKit]
    TS --> API[Read API<br/>FastAPI] --> UI

The gateway subscribes rather than polls. Three independent consumers read one ring buffer, so a slow browser never delays the durable write, and a lost server is shown as stale data, not as a frozen number.

Status

The demo is a simulator: a deterministic scenario engine plays one shift of a fictional plant in the browser, with a fault, a changeover and one data source that degrades, so every visitor sees the same believable story. A public demo is in preparation.