-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsmartpi-etemperature-values.html
More file actions
41 lines (39 loc) · 1.26 KB
/
smartpi-etemperature-values.html
File metadata and controls
41 lines (39 loc) · 1.26 KB
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
<script type="text/javascript">
RED.nodes.registerType('smartpi-e.temperature-values', {
category: 'SmartPi',
color: '#a6bbcf',
defaults: {
name: {
value: 'smartpi-e.temperature-values',
},
indicator: {
value: '',
},
temperaturefile: {
value: '/var/tmp/smartpi/smartpi_etemperature_values',
}
},
inputs: 0,
outputs: 1,
icon: 'arrow-in.png',
label: function () {
return (
this.name + ' ' + this.indicator ||
'smartpi-e.temperature-values ' + this.indicator
);
},
});
</script>
<script type="text/x-red" data-template-name="smartpi-e.temperature-values">
<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="Name">
</div>
<div class="form-row">
<label for="node-input-temperaturefile"><i class="fa fa-globe"></i> Path of temperature-file:</label>
<input type="text" id="node-input-temperaturefile" placeholder="/var/tmp/smartpi/smartpi_etemperature_values">
</div>
</script>
<script type="text/x-red" data-help-name="smartpi-e.temperature-values">
<p>Input of all values from the SmartPi e.temperature addon module.</p>
</script>