Rosepetal Dashboard
@rosepetal/node-red-dashboard-2-rosepetal provides 27 nodes for machine-vision inspection dashboards in Node-RED: 25 widgets for Node-RED Dashboard 2.0 (image viewers and logs, inspection sessions, image capture, charts, buttons, login and style) and 2 nodes without a widget, an audit event store and a locale configuration.
Installation
The package is published to Rosepetal's private npm registry, not to the public npm registry. With the @rosepetal scope set to that registry, install it in the Node-RED user directory and restart Node-RED:
bash
cd ~/.node-red
npm install @rosepetal/node-red-dashboard-2-rosepetalRequirements
- Node-RED >= 3.0.0 and Node.js >= 18. The disk figures of ui-capture and ui-log need Node.js 18.15 or later; with an older version they are not shown.
- Node-RED Dashboard 2.0 (
@flowfuse/node-red-dashboard): every widget is placed on a dashboard group, page or base of Dashboard 2.0. - Some nodes need more; each page says what:
- ui-audit-manager: a RethinkDB server, and a NATS server to publish the events.
- ui-camera-settings: a NATS WebSocket server reachable from the browser.
- ui-capture, ui-image-grid and ui-log: the image folders under
/opt/storage/images, served over HTTP by the Node-RED installation for the thumbnails. ui-capture and ui-log upload through thedataset-uploadandlist-datasetnodes of@rosepetal/node-red-contrib-vision-platform. - ui-sessions: the session folders written by the inspection flow, served over HTTP by the Node-RED installation.
Nodes
The palette category of each node is given in its page.
Images and inspection results
| Node | Purpose |
|---|---|
| ui-canvas-fabric | Image or video viewer with zoom, pan, brightness, boxes, polygons, masks and an OK/NOK card |
| ui-image-grid | Capture images grouped by session, with status labels and upload and delete requests to the flow |
| ui-image-queue | Four latest inspection images as cards; a click opens a zoomable dialog with the detections |
| ui-image-log | Grid of inspection images kept on disk, with a detail dialog, downloads and upload requests to the flow |
| ui-log | Whole log page: start, stop and filter logging, disk use, image log and upload to datasets |
| ui-last-error | Last inspection image received, in one card, with the same zoomable detail dialog |
Inspection sessions
| Node | Purpose |
|---|---|
| ui-sessions | Sessions page: list, details, charts, errors with their images, downloads and a PDF report |
| ui-session-details | Details card of one session: configuration, CSV and JSON downloads, and a delete request |
| ui-sessions-header | Section title with an Options dialog to choose the global image-saving mode |
| ui-sessions-images | Dialog with a grid of session images and a detail panel with zoom, results and detections |
| ui-sessions-player | Button that opens a player for session recordings: timestamped WebP frames or a video |
| ui-session-info | Card with the last result, total and error counts, and a dialog with the errors by type |
| ui-session-status | Panel that shows the session as on (green) or off (red) |
Capture, cameras and datasets
| Node | Purpose |
|---|---|
| ui-capture | Capture page: start and stop named capture sessions, see their latest images, upload them to datasets or delete them |
| ui-camera-settings | List, reorder and set the image size, offset, exposure and gain of the cameras through NATS |
| ui-dataset-save-menu | Suffix and dataset per image source, sent to the flow as a save configuration |
Charts
| Node | Purpose |
|---|---|
| ui-chart-bar | Bar chart from a key/value object, columns or rows, with optional colours per bar |
| ui-chart-line | Line chart of one or two series, built from a history of the numeric values received |
| ui-chart-pie | Pie chart from arrays of labels, values and optional colours, with percentages |
Controls and notifications
| Node | Purpose |
|---|---|
| ui-btn-confirm | Two-state button with an optional confirmation dialog; sends true or false on each confirmation |
| ui-btn-switch | Two-state switch with optional password and session-configuration check; sends the new state |
| ui-notification-overlay | Full-window overlay shown when a message arrives |
| ui-csv-downloader | Hidden page widget that downloads an object of the message as a one-row CSV file |
Access, audit and appearance
| Node | Purpose |
|---|---|
| ui-login | Login button for the usuario and admin roles, with pages hidden from the menu per role |
| ui-audit-manager | Stores each message as an audit event in RethinkDB, optionally publishes it to NATS; editor sidebar with the last events |
| ui-style | Font and corner radius of the whole dashboard |
| rosepetal-locale-config | Config node: time zone and date format of the widgets, texts of the image dialog footbar |
Building from source
From the root of the repository, which holds one npm workspace per widget under rosepetal-dashboard/:
bash
npm install
npm run build # build every widget
npm run dev -- ui-image-queue # rebuild one widget on every change