node-red-contrib-signl4 1.11.0 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
File without changes
package/README.md CHANGED
@@ -1,94 +1,177 @@
1
- # SIGNL4 – IoI and IT On-Call Alerting and Duty Scheduling
2
-
3
- In case of critical incidents in 24/7 IoT or IT operations with Node-RED, SIGNL4 is your tool for instant mobile alerting. SIGNL4 adds critical mobile alerting to Node-RED in no time. It bridges the ‘last mile’ from Node-RED to IoT or IT staff and on-call engineers.
4
-
5
- Upon critical events it notifies team members reliably through persistent mobile push, text and voice calls with acknowledgement, tracking and escalation. Built-in duty scheduling provides for convenient on-call planning and seamless routing of critical alerts to the right people at the right time.
6
-
7
- SIGNL4 thus provides for an up to 10x faster response to critical alerts, major incidents and urgent service requests.
8
-
9
- Download the app and get started at https://www.signl4.com.
10
-
11
- ![SIGNL4](signl4-node-red.png)
12
-
13
- ## Installation
14
-
15
- You can install the SIGNL4 node for Node-RED by the following command:
16
-
17
- ```
18
- npm install node-red-contrib-signl4
19
- ```
20
-
21
- https (https://www.npmjs.com/package/https)
22
-
23
- ## How it works?
24
-
25
- Triggers a new alert for your SIGNL4 team. It will be displayed in the alert overview in the mobile app and online or on-duty people will receive an alert notification. You can find a full description at <a href=https://www.signl4.com/developers/webhook/inbound/#!/Events/RaiseEvent>signl4.com</a>.
26
-
27
- ## Node: SIGN4 Alert
28
-
29
- ### Configuration
30
- The only required value in the configuration is your SIGNL4 Team Secret. The other parameters can be used as default values or they can be overridden by the input parameters (see below).
31
-
32
- ### Inputs
33
-
34
- The body of this request is a JSON object (msg.payload) of your choice. SIGNL4 does not require a specific schema. For example you can use msg.Subject for the subject and msg.payload.Body for the notification text.
35
-
36
- However, you can include the following parameters to enrich your alert or to influence its processing as follows:
37
-
38
- msg.payload.X-S4-Service: Assigns the alert to the service/system category with the specified name.
39
- msg.payload.X-S4-Location: Transmit location information ('latitude, longitude') with your event and display a map in the mobile app.
40
- msg.payload.X-S4-AlertingScenario: Pass 'single_ack' if only one persons needs to confirm this alert. Pass 'multi_ack' in case this alert must be confirmed by the number of people who are on duty at the time this alert is raised.
41
- msg.payload.X-S4-Filtering: Specify a boolean value of true or false to apply event filtering for this event, or not. If set to true, the event will only trigger a notification to the team, if it contains at least one keyword from one of your services and system categories (i.e. it is whitelisted).
42
- msg.payload.X-S4-ExternalID: If the event originates from a record in a 3rd party system, use this parameter to pass the unique ID of that record. That ID will be communicated in outbound webhook notifications from SIGNL4, which is great for correlation / synchronization of that record with the alert.
43
- msg.payload.attachmentBase64Content1: An optional attachment (image or audio file) in base64 format.
44
- msg.payload.attachmentMimeType1: The MIME type, e.g. "image/jpeg" for the first attachment.
45
- msg.payload.attachmentBase64Content2: An second optional attachment (image or audio file) in base64 format.
46
- msg.payload.attachmentMimeType2: The MIME type, e.g. "image/jpeg" for the second attachment.
47
-
48
- Here is an example payload:
49
-
50
- ```
51
- {
52
- "Subject": "SIGNL4 Alert from Node-RED",
53
- "Body": "Machine A2 temperature to high",
54
- "X-S4-Service": "temperature",
55
- "X-S4-Location": "52.3984235,13.0544149",
56
- "X-S4-AlertingScenario": "single_ack",
57
- "X-S4-Filtering": false,
58
- "X-S4-ExternalID": "AB12"
59
- }
60
- ```
61
-
62
- ### Outputs
63
-
64
- The output is the SIGNL4 event ID if the alert was transmitted successfully. The following is an example of the response.
65
-
66
- ```
67
- {
68
- "eventId": "2518287496003329336_737e2711-fe38-469b-b1dc-f812eac5cc35"
69
- }
70
- ```
71
-
72
- ## Node: Resolve Alert
73
-
74
- This is to close an alert previosly created with the same "X-S4-ExternalID".
75
-
76
- msg.payload.X-S4-ExternalID: If the event originates from a record in a 3rd party system, use this parameter to pass the unique ID of that record. That ID will be communicated in outbound webhook notifications from SIGNL4, which is great for correlation / synchronization of that record with the alert.
77
-
78
- Here is an example payload:
79
-
80
- ```
81
- {
82
- "X-S4-ExternalID": "AB12"
83
- }
84
- ```
85
-
86
- ### Outputs
87
-
88
- The output is the SIGNL4 event ID if the alert was transmitted successfully. The following is an example of the response.
89
-
90
- ```
91
- {
92
- "eventId": "2518287496003329336_737e2711-fe38-469b-b1dc-f812eac5cc35"
93
- }
94
- ```
1
+ # SIGNL4 – Mobile Alerting and Incident Response for Node-RED
2
+
3
+ Turn Node-RED events into reliable mobile alerts and fast human action.
4
+
5
+ A machine overheats, a cold storage temperature rises, a server goes offline or an AI-enabled camera detects a person in a restricted area. Node-RED detects and processes the event – SIGNL4 makes sure the right people are notified and can respond, even when nobody is watching the dashboard.
6
+
7
+ [SIGNL4](https://www.signl4.com/) adds critical mobile alerting, incident response and on-call scheduling to your Node-RED flows, from Raspberry Pi projects to industrial automation and enterprise IT operations.
8
+
9
+ ![SIGNL4 Mobile App](signl4-node-red.png)
10
+
11
+ ## Features and benefits
12
+
13
+ - **Reliable mobile alerting:** Persistent app push notifications, SMS and voice calls.
14
+ - **Automatic escalation:** Notify additional responders if an alert remains unacknowledged.
15
+ - **On-call scheduling:** Route alerts to the right people based on duty and shift schedules.
16
+ - **Mobile incident response:** Acknowledge, annotate, track and resolve alerts from your smartphone.
17
+ - **Rich alert context:** Include sensor readings, equipment details, links, GPS locations and camera snapshots.
18
+ - **Alert lifecycle management:** Automatically resolve alerts when the monitored condition returns to normal.
19
+ - **Two-way workflows:** Use SIGNL4 outbound webhooks and remote actions with Node-RED HTTP endpoints to trigger follow-up processes.
20
+
21
+ Features and notification channels depend on your SIGNL4 subscription and configuration.
22
+
23
+ ## Use cases
24
+
25
+ - **Industrial automation (OT):** Machine failures, abnormal temperatures, pressure or vibration readings from PLCs, SCADA systems or MQTT devices.
26
+ - **IoT and edge computing:** Sensor threshold violations, disconnected devices, water leaks or cold chain monitoring.
27
+ - **IT operations:** Server outages, failed services, network issues or failed automation jobs.
28
+ - **AI and computer vision:** Person or object detection, quality inspection failures or unusual activity.
29
+ - **Smart buildings and home automation:** HVAC failures, power outages, flooding or door alerts.
30
+
31
+ ## Installation
32
+
33
+ ### Node-RED Palette Manager
34
+
35
+ 1. Open the Node-RED editor.
36
+ 2. Select **Manage palette** from the main menu.
37
+ 3. Open the **Install** tab and search for `node-red-contrib-signl4`.
38
+ 4. Install the package.
39
+
40
+ ### npm
41
+
42
+ Alternatively, run the following command in your Node-RED user directory (typically `~/.node-red`):
43
+
44
+ ```bash
45
+ npm install node-red-contrib-signl4
46
+ ```
47
+
48
+ Restart Node-RED after installation.
49
+
50
+ ## Getting started
51
+
52
+ 1. Create a SIGNL4 account at [signl4.com](https://www.signl4.com/) and set up your team.
53
+ 2. Obtain your team's integration secret (Team Secret) from SIGNL4.
54
+ 3. Add a **SIGNL4** node to your Node-RED flow and open its configuration.
55
+ 4. Enter the Team Secret and optionally configure default alert parameters.
56
+ 5. Connect an Inject node or your existing event source to the SIGNL4 node.
57
+ 6. Deploy the flow and trigger a test alert. Check the SIGNL4 app and your configured notification channels.
58
+
59
+ The node sends events via outbound HTTPS to `connect.signl4.com` (TCP port 443). Keep your Team Secret private and remove it from any flows you share or export publicly.
60
+
61
+ ## Node: SIGNL4
62
+
63
+ The SIGNL4 node creates an alert for your team. SIGNL4 handles notification delivery, on-call routing and escalation according to your team's configuration.
64
+
65
+ ### Input
66
+
67
+ Pass a JavaScript object in `msg.payload`. Values supplied in the message can override the defaults configured in the node. Additional properties can be used to provide context as alert fields; use simple scalar values or stringify complex data before sending.
68
+
69
+ Example JSON payload for a machine temperature alert:
70
+
71
+ ```json
72
+ {
73
+ "Subject": "Machine A2 – Temperature too high",
74
+ "Body": "Motor temperature exceeds the configured threshold.",
75
+ "Machine": "A2",
76
+ "Temperature": "95 °C",
77
+ "Threshold": "80 °C",
78
+ "X-S4-Service": "Production",
79
+ "X-S4-Location": "52.3984235,13.0544149",
80
+ "X-S4-AlertingScenario": "single_ack",
81
+ "X-S4-Filtering": false,
82
+ "X-S4-ExternalID": "machine-a2-temperature"
83
+ }
84
+ ```
85
+
86
+ ### Alert parameters
87
+
88
+ All parameters below are properties of `msg.payload`.
89
+
90
+ | Parameter | Description |
91
+ | --- | --- |
92
+ | `Subject` | Alert title. |
93
+ | `Body` | Alert message. |
94
+ | `X-S4-Service` | Name of the SIGNL4 service or system category to associate with the alert. |
95
+ | `X-S4-Location` | Coordinates as `latitude,longitude` for displaying the location on a map. |
96
+ | `X-S4-AlertingScenario` | `single_ack` for acknowledgement by one responder, or `multi_ack` for acknowledgement by all required on-duty responders. |
97
+ | `X-S4-Filtering` | Boolean controlling whether SIGNL4 service/category keyword filtering is applied. |
98
+ | `X-S4-ExternalID` | Identifier from the source system for correlating alerts, status updates and resolution events. |
99
+ | `attachmentBase64Content1` | Optional first attachment, encoded as Base64. |
100
+ | `attachmentMimeType1` | MIME type of the first attachment (use `image/jpeg` with the current implementation). |
101
+ | `attachmentBase64Content2` | Optional second attachment, encoded as Base64. |
102
+ | `attachmentMimeType2` | MIME type of the second attachment (use `image/jpeg` with the current implementation). |
103
+
104
+ In a Function node, use bracket notation for properties containing hyphens, for example `msg.payload["X-S4-ExternalID"]`.
105
+
106
+ ### Camera snapshots
107
+
108
+ For example, if the incoming `msg.payload` is a Buffer containing a JPEG snapshot, a Function node can prepare the alert as follows:
109
+
110
+ ```javascript
111
+ const snapshot = msg.payload;
112
+ msg.payload = {
113
+ Subject: "Person detected in restricted area",
114
+ Body: "Check the attached camera snapshot.",
115
+ attachmentBase64Content1: snapshot.toString("base64"),
116
+ attachmentMimeType1: "image/jpeg"
117
+ };
118
+ return msg;
119
+ ```
120
+
121
+ Connect the Function node to the SIGNL4 node.
122
+
123
+ ## Node: SIGNL4 Resolve
124
+
125
+ Use the **SIGNL4 Resolve** node to close a previously raised alert when the underlying issue has been resolved.
126
+
127
+ Configure the same Team Secret and send the same external ID that was used when creating the alert:
128
+
129
+ ```json
130
+ {
131
+ "X-S4-ExternalID": "machine-a2-temperature"
132
+ }
133
+ ```
134
+
135
+ For example, a Node-RED flow can raise an alert when a machine exceeds its temperature threshold and resolve it when the temperature returns to normal. Use a stable external ID for each monitored condition and consider hysteresis or an RBE (report by exception) node to avoid repeated alerts.
136
+
137
+ ## Outputs and error handling
138
+
139
+ Both nodes provide output messages that can be connected to a Debug node or used in subsequent processing.
140
+
141
+ In the current implementation, an immediate output with `msg.payload` set to `OK` is followed by the webhook response body as a string when the server accepts the request. The immediate output alone does not confirm successful delivery. A successful webhook response may contain an event ID, for example:
142
+
143
+ ```json
144
+ {
145
+ "eventId": "2518287496003329336_737e2711-fe38-469b-b1dc-f812eac5cc35"
146
+ }
147
+ ```
148
+
149
+ Parse the response string as JSON if you need to access the event ID. Use a Catch node and the Node-RED logs to inspect errors reported by the nodes. For production use, also consider independent delivery monitoring and retry handling in your flow.
150
+
151
+ ## Two-way integration and remote actions
152
+
153
+ The two SIGNL4 nodes send events to SIGNL4. For workflows in the opposite direction, use Node-RED's built-in HTTP In and HTTP Response nodes together with SIGNL4 outbound webhooks or remote actions.
154
+
155
+ Examples include synchronizing alert acknowledgements with another system, creating or updating a service ticket, enriching incidents with additional information, or triggering an authorized remediation workflow directly from the SIGNL4 app.
156
+
157
+ Ensure the receiving endpoint is reachable from SIGNL4, appropriately authenticated and protected. Validate incoming requests before triggering any actions.
158
+
159
+ ## Troubleshooting
160
+
161
+ - Verify that the Team Secret is correct and belongs to the intended team.
162
+ - Check outbound HTTPS connectivity from the Node-RED runtime.
163
+ - Confirm that team members are on duty and that notification and escalation settings are configured.
164
+ - If filtering is enabled, check whether the event matches a configured service or category.
165
+ - If an alert does not resolve, verify that both nodes use the same Team Secret and external ID.
166
+
167
+ ## Resources
168
+
169
+ - [Get started with SIGNL4](https://www.signl4.com/)
170
+ - [SIGNL4 integration guide for Node-RED](https://docs.signl4.com/integrations/node-red/)
171
+ - [SIGNL4 documentation](https://docs.signl4.com/)
172
+ - [Node-RED Flow Library](https://flows.nodered.org/node/node-red-contrib-signl4)
173
+ - [GitHub repository and issue tracker](https://github.com/signl4/node-red-contrib-signl4)
174
+
175
+ ## License
176
+
177
+ MIT – see the [LICENSE](https://github.com/signl4/node-red-contrib-signl4/blob/master/LICENSE) file.
File without changes
package/icons/resolve.png CHANGED
File without changes
package/icons/signl4.png CHANGED
File without changes
package/package.json CHANGED
@@ -1,37 +1,37 @@
1
- {
2
- "author": "Derdack GmbH",
3
- "name": "node-red-contrib-signl4",
4
- "version": "1.11.0",
5
- "description": "SIGNL4 – IoT and IT On-Call Alerting and Duty Scheduling with Push Notifications, SMS and Voice Calls",
6
- "license": "MIT",
7
- "repository": {
8
- "type": "git",
9
- "url": "git+https://github.com/signl4/node-red-contrib-signl4.git"
10
- },
11
- "dependencies": {
12
- "https": "^1.0.0"
13
- },
14
- "keywords": [
15
- "node-red",
16
- "signl4",
17
- "iot",
18
- "alert"
19
- ],
20
- "node-red": {
21
- "nodes": {
22
- "SIGNL4 Alerting": "signl4.js"
23
- }
24
- },
25
- "bugs": {
26
- "url": "https://github.com/signl4/node-red-contrib-signl4/issues"
27
- },
28
- "homepage": "https://github.com/signl4/node-red-contrib-signl4#readme",
29
- "main": "signl4.js",
30
- "directories": {
31
- "example": "examples"
32
- },
33
- "devDependencies": {},
34
- "scripts": {
35
- "test": "echo \"Error: no test specified\" && exit 1"
36
- }
37
- }
1
+ {
2
+ "author": "Derdack GmbH",
3
+ "name": "node-red-contrib-signl4",
4
+ "version": "1.11.1",
5
+ "description": "SIGNL4 – IoT and IT On-Call Alerting and Duty Scheduling with Push Notifications, SMS and Voice Calls",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/signl4/node-red-contrib-signl4.git"
10
+ },
11
+ "dependencies": {
12
+ "https": "^1.0.0"
13
+ },
14
+ "keywords": [
15
+ "node-red",
16
+ "signl4",
17
+ "iot",
18
+ "alert"
19
+ ],
20
+ "node-red": {
21
+ "nodes": {
22
+ "SIGNL4 Alerting": "signl4.js"
23
+ }
24
+ },
25
+ "bugs": {
26
+ "url": "https://github.com/signl4/node-red-contrib-signl4/issues"
27
+ },
28
+ "homepage": "https://github.com/signl4/node-red-contrib-signl4#readme",
29
+ "main": "signl4.js",
30
+ "directories": {
31
+ "example": "examples"
32
+ },
33
+ "devDependencies": {},
34
+ "scripts": {
35
+ "test": "echo \"Error: no test specified\" && exit 1"
36
+ }
37
+ }
Binary file