node-red-contrib-signl4 1.10.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 +0 -0
- package/README.md +177 -94
- package/examples/SIGNL4 Flow.json +0 -0
- package/icons/resolve.png +0 -0
- package/icons/signl4.png +0 -0
- package/package.json +37 -37
- package/signl4-node-red.png +0 -0
- package/signl4.html +231 -231
- package/signl4.js +292 -290
- package/signl4.png +0 -0
- package/signl4-node-red.pdn +0 -0
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -1,94 +1,177 @@
|
|
|
1
|
-
# SIGNL4 –
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
SIGNL4
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
##
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
###
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
+

|
|
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.
|
|
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
|
+
}
|
package/signl4-node-red.png
CHANGED
|
Binary file
|