-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnr-rf24stats.html
47 lines (42 loc) · 1.5 KB
/
nr-rf24stats.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
<script type="text/x-red" data-template-name="RF24stats">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" />
</div>
<div class="form-row">
<label for="node-input-radio"><i class="fa fa-microchip"></i> RF24 Radio</label>
<input type="text" id="node-input-radio" />
</div>
<div class="form-row">
<label for="node-input-topic"><i class="fa fa-tasks"></i> Topic</label>
<input type="text" id="node-input-topic">
</div>
</script>
<script type="text/javascript">
RED.nodes.registerType("RF24stats", {
category: "nRF24l01",
color:"#A6BBCF",
icon:"feed.png",
defaults: {
name: {value:"", required: false},
topic: {value:"nrf24stats", required: false},
radio: {type:"RF24radio", required: true},
},
inputs:1,
outputs:1,
label: function() {
return this.name ? this.name : "nRF24stats";
},
labelStyle: function() { return this.name ? "node_label_italic" : "";},
outputLabels: ["stats"],
inputLabels: "Trigger"
});
</script>
<script type="text/x-red" data-help-name="RF24stats">
<p>RF24 stats</p>
<p> This simple node receive a input msg in the input and
emit general statiscs of the radio selected to it's output.
if <code>msg.payload="reset"</code> statistic information will
be cleared.
</p>
</script>