-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathXiaomiScale.html
41 lines (32 loc) · 1.05 KB
/
XiaomiScale.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
<script type="text/javascript">
RED.nodes.registerType('Xiaomi Scale',{
category: 'input',
color: '#FADCA7',
defaults: {
name: {value:""},
showalldata: {value: "false"}
},
inputs:0,
outputs:1,
icon: "ic_scale2.png",
label: function() {
return this.name|| "Xiaomi Scale";
},
});
</script>
<script type="text/x-red" data-template-name="Xiaomi Scale">
<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">
</div>
<div class="form-row">
<label for="node-input-showalldata"><i class="icon-tag"></i> Stable Output Only</label>
<input type="checkbox" id="node-input-showalldata">
</div>
<div class="form-tips">Only output msg object when <STRONG>isStabilized</STRONG> and <STRONG>loadRemoved</STRONG> attributes is <code>true</code></div>
</script>
</script>
<script type="text/x-red" data-help-name="Xiaomi Scale">
<p>Use this node to retreive data from your Xiaomi Scale.</p>
</script>