-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoffline-alert.html
More file actions
38 lines (36 loc) · 1.69 KB
/
Copy pathoffline-alert.html
File metadata and controls
38 lines (36 loc) · 1.69 KB
1
2
3
4
5
6
7
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
<script type="text/javascript">
RED.nodes.registerType("offline-alert", {
category: "network",
paletteLabel: "Offline Alert",
color: '#F07A4C',
icon: "font-awesome/fa-heartbeat",
defaults: {
name: { value: "" },
slot: { value: "", required: true, validate: RED.validators.regex(/^[0-9a-f-]{36}$/) }
},
//outputs: 1,
label: function () {
return this.name || "Offline Alert";
}
});
</script>
<script type="text/html" data-template-name="offline-alert">
<div class="form-row">
<div class="form-row">
<label for="node-input-slot">Slot ID</label>
<input type="text" id="node-input-slot">
</div>
<div class="form-tips" style="width: auto">Start chat with Telegram bot to get Slot ID: <a target="_blank" href="https://t.me/OfflineAlertBot?start=nr">@OfflineAlertBot</a>.</div>
</div>
<div class="form-row">
<label for="node-input-name">Name</label>
<input type="text" type="text" id="node-input-name">
</div>
</script>
<script type="text/html" data-help-name="offline-alert">
<p>This node sends periodic HTTPS requests to the maintainer's server. If the server detects that no requests have been received for a certain period, it sends you a notification via Telegram.</p>
<p>To use the node, you need to fill in the Slot ID configuration.</p>
<p>To get a Slot ID, follow the link to the Telegram bot. The link is provided in the node's settings.</p>
<p>The Slot ID is required for the monitoring server to identify which user should receive a notification in case a disconnection is detected.</p>
<p>The monitoring status is displayed in the node's status. If you need to process this status, use the status node.</p>
</script>