@andor-automation/node-red-dashboard-2-widgets-ui-alarmlist
v1.0.0
Published
Displays a list of active alarms. Each alarm is stored in a local SQLite database and remains visible until it is explicitly reset. Alarms persist across Node-RED restarts.
Readme
Node-RED widget UI Alarmlist
Displays a list of active alarms. Each alarm is stored in a local SQLite database and remains visible until it is explicitly reset. Alarms persist across Node-RED restarts.
Requires
- Node-RED ≥ 3.0.0 – required for Dashboard 2 widget support
- Node.js ≥ 22.5.0 – required for built-in
node:sqlitemodule
Usage
The node accepts messages with the following structure:
msg.payload.alarm.text→ Adds or updates an active alarm.msg.payload.alarm.reset: true→ Removes the alarm with the same text.
Node properties
Title
Defines the widget header text in the dashboard.
Data persistence
Active alarms are saved in a SQLite database located at <userDir>/alarmlist.sqlite.
By default, userDir points to ~/.node-red/. If Node-RED is configured with a custom userDir in settings.js, the database will be created there instead.
The database contains two tables
- alarms – holds the currently active alarms
- alarms_history – logs every alarm activation and reset with timestamps
Input format
Set alarm
{
"payload": {
"alarm": { "text": "Motor 1 överhettad" }
}
}Reset alarm
{
"payload": {
"alarm": { "text": "Motor 1 överhettad", "reset": true }
}
}