-
Notifications
You must be signed in to change notification settings - Fork 0
/
hubo-input.html
36 lines (34 loc) · 1.05 KB
/
hubo-input.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('hubo-input',{
category: 'input',
color: '#C0DEED',
defaults: {
hubo: {required: true, value: '', type: 'hubo'},
channel: {required: true, value: '0'},
name: {value: ''}
},
inputs: 0,
outputs: 1,
icon: "serial.png",
label: function() {
return this.name || 'Hubo Input ' + this.channel
}
})
</script>
<script type="text/x-red" data-template-name="hubo-input">
<div class="form-row">
<label for="node-input-hubo"><i class="icon-tag"></i> Hubo</label>
<input type="text" id="node-input-hubo" placeholder="">
</div>
<div class="form-row">
<label for="node-input-channel"><i class="icon-tag"></i> Input</label>
<input type="text" id="node-input-channel" placeholder="0">
</div>
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name">
</div>
</script>
<script type="text/x-red" data-help-name="hubo-input">
<p>Read Hubo digital input</p>
</script>