-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paththingy.html
34 lines (32 loc) · 1.19 KB
/
thingy.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
<script type="text/javascript">
RED.nodes.registerType('Thingy',{
category: 'function',
color: '#3FADB5',
defaults: {
name: {value:""},
time: {value: 3}
},
inputs:0,
outputs:1,
icon: "envelope.png",
label: function() {
return this.name||"Thingy";
}
});
</script>
<script type="text/x-red" data-template-name="Thingy">
<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">
<br>
<label for="node-input-time"><i class="icon-repeat"></i> Time Interval</label>
<input type="number" id="node-input-time" placeholder="time in seconds">
<br><br>
<p><b>Note:</b> By default, the time interval is 3 seconds</p>
</div>
</script>
<script type="text/x-red" data-help-name="Thingy">
<p>A simple node that reads environment service from Nordic Thingy52</p>
<p>At the moment, this node is only capable of reading Temperature, Humidity, Pressure, Gas and Battery Level</p>
<p>Developed by Tung Nguyen</p>
</script>