Skip to content

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-rosepetal

Requirements ​

  • 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 the dataset-upload and list-dataset nodes 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 ​

NodePurpose
ui-canvas-fabricImage or video viewer with zoom, pan, brightness, boxes, polygons, masks and an OK/NOK card
ui-image-gridCapture images grouped by session, with status labels and upload and delete requests to the flow
ui-image-queueFour latest inspection images as cards; a click opens a zoomable dialog with the detections
ui-image-logGrid of inspection images kept on disk, with a detail dialog, downloads and upload requests to the flow
ui-logWhole log page: start, stop and filter logging, disk use, image log and upload to datasets
ui-last-errorLast inspection image received, in one card, with the same zoomable detail dialog

Inspection sessions ​

NodePurpose
ui-sessionsSessions page: list, details, charts, errors with their images, downloads and a PDF report
ui-session-detailsDetails card of one session: configuration, CSV and JSON downloads, and a delete request
ui-sessions-headerSection title with an Options dialog to choose the global image-saving mode
ui-sessions-imagesDialog with a grid of session images and a detail panel with zoom, results and detections
ui-sessions-playerButton that opens a player for session recordings: timestamped WebP frames or a video
ui-session-infoCard with the last result, total and error counts, and a dialog with the errors by type
ui-session-statusPanel that shows the session as on (green) or off (red)

Capture, cameras and datasets ​

NodePurpose
ui-captureCapture page: start and stop named capture sessions, see their latest images, upload them to datasets or delete them
ui-camera-settingsList, reorder and set the image size, offset, exposure and gain of the cameras through NATS
ui-dataset-save-menuSuffix and dataset per image source, sent to the flow as a save configuration

Charts ​

NodePurpose
ui-chart-barBar chart from a key/value object, columns or rows, with optional colours per bar
ui-chart-lineLine chart of one or two series, built from a history of the numeric values received
ui-chart-piePie chart from arrays of labels, values and optional colours, with percentages

Controls and notifications ​

NodePurpose
ui-btn-confirmTwo-state button with an optional confirmation dialog; sends true or false on each confirmation
ui-btn-switchTwo-state switch with optional password and session-configuration check; sends the new state
ui-notification-overlayFull-window overlay shown when a message arrives
ui-csv-downloaderHidden page widget that downloads an object of the message as a one-row CSV file

Access, audit and appearance ​

NodePurpose
ui-loginLogin button for the usuario and admin roles, with pages hidden from the menu per role
ui-audit-managerStores each message as an audit event in RethinkDB, optionally publishes it to NATS; editor sidebar with the last events
ui-styleFont and corner radius of the whole dashboard
rosepetal-locale-configConfig 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