-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsignalk-send-put.html
38 lines (36 loc) · 1.21 KB
/
signalk-send-put.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
38
<script type="text/javascript">
RED.nodes.registerType('signalk-send-put',{
category: 'Signal K',
color: '#ffcc01',
defaults: {
name: {value:""},
path: {value:""},
source: {value:""}
},
inputs:1,
outputs:0,
icon: "bridge.png",
align: 'right',
label: function() {
return this.name||"signalk-send-put";
},
paletteLabel: 'send put'
});
</script>
<script type="text/x-red" data-template-name="signalk-send-put">
<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-path"><i class="icon-tag"></i> Path</label>
<input type="text" id="node-input-path" placeholder="Path">
</div>
<div class="form-row">
<label for="node-input-source"><i class="icon-tag"></i> $Source</label>
<input type="text" id="node-input-source" placeholder="$Source">
</div>
</script>
<script type="text/x-red" data-help-name="signalk-send-put">
<p>Output that send a SignalK put request via `app.putSelfPath`. Input should be the value to put. The topic will be used as the path if none is entered.</p>
</script>