forked from ivesdebruycker/node-red-contrib-maxcube
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaxcube.html
More file actions
executable file
·43 lines (41 loc) · 1.24 KB
/
maxcube.html
File metadata and controls
executable file
·43 lines (41 loc) · 1.24 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
<script type="text/javascript">
RED.nodes.registerType('maxcube',{
category: 'output',
color: '#F3B567',
defaults: {
name: { value:"" },
ip: { value:"", required:true },
port: { value: 62910, required:true }
},
inputs: 1,
outputs: 0,
icon: "bridge.png",
label: function() {
return this.name || "Maxcube";
},
align: 'right'
});
</script>
<script type="text/x-red" data-template-name="maxcube">
<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-ip"><i class="icon-tag"></i> Ip</label>
<input type="text" id="node-input-ip" placeholder="ip">
</div>
<div class="form-row">
<label for="node-input-port"><i class="icon-tag"></i> Port</label>
<input type="text" id="node-input-port" placeholder="port">
</div>
</script>
<script type="text/x-red" data-help-name="maxcube">
<p>A node to control the eQ-3 Max! Cube</p>
<p>Accepts messages with payload of type object with following structure:
<pre>{
"rf_address": "0abc12",
"degrees": 20
}</pre>
</p>
</script>