-
Notifications
You must be signed in to change notification settings - Fork 1
/
sht.html
32 lines (30 loc) · 1.14 KB
/
sht.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
<script type="text/javascript">
RED.nodes.registerType('SHT3x',{
category: 'i2c bus',
color: '#3FADB5',
defaults: {
name: {value:""},
shtaddress: {value:"0x44"}
},
inputs:1,
outputs:1,
icon: "font-awesome/fa-thermometer-half",
label: function() {
return this.name||"SHT3x";
}
});
</script>
<script type="text/html" data-template-name="SHT3x">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="">
</div>
<div class="form-row">
<label for="node-input-shtaddress"><i class="fa fa-plug"></i> I2C address</label>
<input type="text" id="node-input-shtaddress" placeholder="0x44">
</div>
<div class="form-tips"><b>Info:</b> Default I2C address is <i>0x44</i> or in case ADDR pin of the SHT3x chip is connected to logic high <i>0x45</i>.</div>
</script>
<script type="text/html" data-help-name="SHT3x">
<p>Returns measurements from Sensirion SHT3x humidity and temperature sensors</p>
</script>