-
Notifications
You must be signed in to change notification settings - Fork 1
/
mmg2-relay.html
57 lines (46 loc) · 1.21 KB
/
mmg2-relay.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<script type="text/javascript">
RED.nodes.registerType(
"mmg2-relay",
{
category: "MMG2",
color: "#299FD3",
defaults: {
connection: {
value: "",
type: "mmg2-connector"
},
locationID: {
value: 0
},
control: {
value: -1
}
},
inputs: 1,
outputs: 1,
icon: "cog.svg",
label: function() {
return "Relay";
}
}
);
</script>
<script type="text/html" data-template-name="mmg2-relay">
<div class="form-row">
<label for="node-input-connection"><i class="fa fa-tag"></i>Connection</label>
<input id="node-input-connection">
</div>
<div class="form-row">
<label for="node-input-locationID"><i class="fa fa-tag"></i>locationID</label>
<input type="text" id="node-input-locationID" placeholder="locationID">
</div>
<p>Location to set control instruction for. Override by setting msg.locationID.</p>
<div class="form-row">
<label for="node-input-control"><i class="fa fa-tag"></i>Control</label>
<input type="text" id="node-input-control" placeholder="Control Value">
</div>
<p>Relay value to set. Override by setting msg.control.</p>
</script>
<script type="text/html" data-help-name="mmg2-relay">
<p>Control a relay.</p>
</script>