-
Notifications
You must be signed in to change notification settings - Fork 1
/
mmg2-reading.html
68 lines (55 loc) · 1.58 KB
/
mmg2-reading.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
58
59
60
61
62
63
64
65
66
67
68
<script type="text/javascript">
RED.nodes.registerType(
"mmg2-reading",
{
category: "MMG2",
color: "#299FD3",
defaults: {
connection: {
value: "",
type: "mmg2-connector"
},
locationID: {
value: 0
},
wrap: {
value: false
},
beginTime: {
value: 0
}
},
inputs: 1,
outputs: 1,
icon: "arrow-in.svg",
label: function() {
return "Reading";
}
}
);
</script>
<script type="text/html" data-template-name="mmg2-reading">
<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="input" id="node-input-locationID" placeholder="locationID">
</div>
<p>Location to show data for. Override by setting msg.locationID.</p>
<div class="form-row">
<label for="node-input-wrap"><i class="fa fa-tag"></i>Wrap with payload object</label>
<input type="checkbox" id="node-input-wrap" placeholder="wrap">
</div>
<p>Wrapped: { "payload": { "value":1 }}</p>
<p>Unwrapped: { "value":1 }</p>
<div class="form-row">
<label for="node-input-beginTime"><i class="fa fa-tag"></i>Begin Time</label>
<input type="text" id="node-input-beginTime" placeholder="Begin Time">
</div>
<p>Point to return data from. Override by setting msg.beginTime.</p>
</script>
<script type="text/html" data-help-name="mmg2-reading">
<p>A simple node that maintains a current reading.</p>
</script>