-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsignalk-put-handler.html
More file actions
38 lines (36 loc) · 1.36 KB
/
signalk-put-handler.html
File metadata and controls
38 lines (36 loc) · 1.36 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('signalk-put-handler',{
category: 'Signal K',
color: '#ffcc01',
defaults: {
name: {value:""},
path: {value:""},
pending: {value: false},
},
inputs:0,
outputs:1,
icon: "bridge.png",
label: function() {
return this.name||"signalk-put-handler";
},
paletteLabel: 'put handler'
});
</script>
<script type="text/x-red" data-template-name="signalk-put-handler">
<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-pending"><i class="icon-tag"></i> Use Put Response</label>
<input type="checkbox" id="node-input-pending">
</div>
</script>
<script type="text/x-red" data-help-name="signalk-put-handler">
<p>Input that sends messages when a PUT is sent to the server for the given path</p>
<p>If "Use Put Response" is checked, the node will respond with status PENDING, use the signalk-put-response node to handle the response.</p>
</script>