-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenvirophat.html
34 lines (29 loc) · 955 Bytes
/
envirophat.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/x-red" data-template-name="envirophat">
</script>
<script type="text/x-red" data-help-name="envirophat">
<p>A very simple node to push out readings from the Pimoroni Envirophat.
Currently pushes out one message every half a second, but this can be
adjusted in script.py as time.sleep(numberOfSeconds).
</p>
<h3>Outputs</h3>
<dl class="message-properties">
<dt>msg.envirophat
<span class="property-type">object</span>
</dt>
<dd> the envirophat readings appended to the message as an object. </dd>
</dl>
</script>
<script type="text/javascript">
RED.nodes.registerType('envirophat', {
category: 'input',
color: '#C0C0C0',
defaults: {
},
inputs: 0,
outputs: 1,
icon: "pimoroni.png",
label: function () {
return this.name || "envirophat";
},
});
</script>