-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsignalk-delay.html
36 lines (32 loc) · 1.08 KB
/
signalk-delay.html
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
<script type="text/javascript">
RED.nodes.registerType('signalk-delay',{
category: 'Signal K',
color: '#ffcc01',
defaults: {
name: {value:""},
delay: {value: 5000}
},
inputs:1,
outputs:1,
icon: "function.png",
label: function() {
return this.name||"signalk-delay";
},
paletteLabel: 'delay'
});
</script>
<script type="text/x-red" data-template-name="signalk-delay">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-delay"><i class="icon-tag"></i> Delay (ms)</label>
<input type="text" id="node-input-delay" placeholder="Delay">
</div>
</script>
<script type="text/x-red" data-help-name="signalk-delay">
<p>Function that will delay sending the input until the value has been the same for the given timout<p>
<p>For example, you could use this to send a low starter battery voltage alarm only if it stays low for 5 seconds. </p>
</code></pre>
</script>