What happens
The plant’s machines never stop talking
Temperature, pressure and vibration readings land in hourly files. When the hour closes, a Datafloem flow drops the bad readings, summarises each machine and sensor, joins the limits, and boils about 54,000 readings down to 36 summary rows and 2 flagged sensors.
9 am on the plant floor. Twelve machines send temperature, pressure and vibration; CNC-3's sensors report to the PLC panel every second. The readings travel over OPC UA to a collector and Kafka, and each hour lands in MinIO as files. During the hour, CNC-3's spindle runs hotter and hotter, and nobody is standing next to it.
In the demo, the hour closes at 10:00 and the DataFloem flow runs: 54,000 readings become 36 summary rows, and two sensors are out of their limits. CNC-3's spindle peaked at 92 °C against a limit of 85 °C, far past the margin, so it turns red and a work order goes to John, the maintenance technician. Press-2's pressure is only just over its limit: it turns amber and stays on watch, with no work order. John walks to CNC-3, stops it, tops up the coolant and checks the spindle. At 11:00 the flow runs again: CNC-3 is back within its limits, and Press-2 is still on watch until its planned maintenance.
The DataFloem flow
One flow turns an hour of raw readings into a summary with limits. The summary goes to an Iceberg table and to the dashboard; only the critical breaches become work orders.
- MinIO sensor files, PostgreSQL limits. A Source node reads the hour's JSON files from MinIO, by date and hour; another reads the limits table from PostgreSQL, one row per machine and sensor with its minimum, maximum and warning margin.
- Bad · missing · impossible readings. A Filter node drops readings that are not OK, missing or physically impossible: 184 of them in the demo's hour.
- Units · hour bucket. An Expression node brings every value to one unit and puts each reading in its hour.
- Machine · sensor · hour. An Aggregation node groups by machine, sensor and hour and computes the average, minimum, maximum and reading count: 36 rows for the hour.
- Summary ↔ limits. A Join node attaches each sensor's limits to its summary. Joining after the summary means joining 36 rows, not every raw reading.
- Flag out of limits. An Expression node flags a breach when the maximum or minimum crosses a limit, computes how far past it is and sets the severity: beyond the 5% margin is high (red), up to it is watch (amber).
-
Iceberg table, Dashboard.
Every summary row goes to the
plant.hourly_summaryIceberg table and to the maintenance dashboard. A Pre Query first clears the hour being processed, so a rerun replaces it instead of duplicating it. - Flagged · high severity, Maintenance work orders. A Filter node lets through only high-severity breaches, and each one becomes a work order on the technician's terminal.
On the screens
John's terminal lists his work orders. WO-10482 arrives as new, P1: CNC-3's spindle temperature peaked at 92 °C, limit 85 °C, check the coolant and the spindle. Once the work is done, it shows as done. The maintenance lead's dashboard shows the hour's readings, the readings dropped, the summary rows and the flagged sensors: CNC-3 red, Press-2 amber, the other 34 sensors within their limits. The panel beside the machine follows CNC-3's spindle temperature, coolant pressure, vibration and status, with the temperature curve against the 85 °C line.
The result card shows four figures:
- Readings in the hour: the 54,000 readings the flow went through.
- Flagged sensors: the two sensors out of their limits, one red and one amber.
- Breach → fix: the minutes from the breach to the closed work order.
- Within limits at 11:00: 11 of the 12 machines, with Press-2 still on watch.
What it uses
- Connections to the MinIO bucket and the PostgreSQL limits table in one job.
- Jobs with Filter, Expression, Aggregation, Join and Target nodes, built on the canvas.
- Data preview to check the hourly summary and the severity rule on real readings.
- Compute that runs the same flow every hour, from one line to the whole plant.
- Catalogs that register the Iceberg table for maintenance, quality and management.
A machine drifting out of its limits shows up within the hour, gets fixed, and the next hour proves it, instead of turning up in the next breakdown report.
The full story
This demo plays the batch job from our factory sensor data use case. The use case walks through the whole pipeline, from OPC UA and Kafka to the files in MinIO, node by node, with a video of the same flow on the DataFloem canvas.
