IntegrationNode-RED Modbus Example
Live Modbus Dashboard with Gauges
Display live Modbus values in a Node-RED Dashboard with gauge and chart widgets. This example polls 4 registers and displays them as real-time gauges — useful for a quick monitoring view on a tablet or monitor.
What you need
- Node-RED v3+
- node-red-contrib-modbus installed
- @flowfuse/node-red-dashboard installed (npm install @flowfuse/node-red-dashboard)
- Modbus device with process values
Flow Overview
Modbus poll ──▶ Function (split 4 values)
│
┌─────────┼──────────┬──────────┐
▼ ▼ ▼ ▼
Gauge Gauge Gauge Gauge
Temperature Voltage Current Power
°C V A W
└─────────┴──────────┴──────────┘
Dashboard /ui
Node-RED Flow JSON
To import: open Node-RED → Hamburger menu → Import → paste this JSON → Deploy.
Expected Output
// Browser at http://localhost:1880/dashboard shows 4 live gauges // updating every 2 seconds with Modbus values
Common Gotchas
- The function node must have 4 outputs configured (double-click and set Output count to 4).
- Use @flowfuse/node-red-dashboard (v4+) not the older node-red-dashboard package — APIs differ.
- Set appropriate min/max on each gauge or values outside the range will clip visually.
- If you want a historical chart, add a ui-chart node in parallel with the gauge.
- For RTU connections over serial port, replace the modbus-client tcpHost with the serial port path and change clienttype to 'serial'.
Same in ModPackQT — in 30 seconds
ModPackQT has a built-in GraphPanel that plots any register value live with configurable time ranges and refresh rates — no dashboard node setup required. Click the graph icon in any register row.
Was this example helpful?
More Integration examples