-
Notifications
You must be signed in to change notification settings - Fork 2
/
signalk-on-delta.html
37 lines (35 loc) · 1.23 KB
/
signalk-on-delta.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
37
<script type="text/javascript">
RED.nodes.registerType('signalk-on-delta',{
category: 'Signal K',
color: '#ffcc01',
defaults: {
name: {value:""},
context: {value: "vessels.self"},
flatten: {value: true},
},
inputs:0,
outputs:1,
icon: "bridge.png",
label: function() {
return this.name||"signalk-on-delta";
},
paletteLabel: 'on delta'
});
</script>
<script type="text/x-red" data-template-name="signalk-on-delta">
<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-context"><i class="icon-tag"></i> Context</label>
<input type="text" id="node-input-context" placeholder="Context">
</div>
<div class="form-row">
<label for="node-input-flatten"><i class="icon-tag"></i> Flatten</label>
<input type="checkbox" id="node-input-flatten" placeholder="Flatten">
</div>
</script>
<script type="text/x-red" data-help-name="signalk-on-delta">
<p>Input that sends messages for every delta the server receives</p>
</script>