forked from 2bbb/node-red-node-artnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode-red-node-artnet.html
More file actions
47 lines (45 loc) · 1.56 KB
/
node-red-node-artnet.html
File metadata and controls
47 lines (45 loc) · 1.56 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
39
40
41
42
43
44
45
46
47
<script type="text/javascript">
RED.nodes.registerType('artnet out',{
category: 'output',
color: '#0f0',
defaults: {
address: {value: "127.0.0.1"},
port: {value: 6454},
size: {value: 512},
rate: {value: 40},
name: {value: ""}
},
inputs:1,
outputs:0,
align: "right",
icon: "light.png",
label: function() {
return this.name || "artnet";
}
});
</script>
<script type="text/x-red" data-template-name="artnet out">
<div class="form-row">
<label for="node-input-address"><i class="fa fa-bookmark"></i> Address</label>
<input type="text" id="node-input-address" placeholder="IP Address">
</div>
<div class="form-row">
<label for="node-input-port"><i class="fa fa-tag"></i> Port</label>
<input type="text" id="node-input-port" placeholder="Port">
</div>
<div class="form-row">
<label for="node-input-size"><i class="fa fa-tag"></i> Size</label>
<input type="text" id="node-input-size" placeholder="Data size">
</div>
<div class="form-row">
<label for="node-input-rate"><i class="fa fa-tag"></i> Rate</label>
<input type="text" id="node-input-rate" placeholder="Rate">
</div>
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="artnet out">
<p>artnet</p>
</script>