node-red-contrib-rn-combine.../thermostat-analyzer.html

37 lines
1.3 KiB
HTML
Raw Normal View History

2023-10-03 16:59:59 +03:00
<script type="text/javascript">
RED.nodes.registerType('c-thermostat-analyzer',{
category: 'Combined RN',
color: '#F3B567',
paletteLabel: 'Th-analyzer',
defaults: {
2023-10-03 17:15:20 +03:00
name: {value:""}
2023-10-03 16:59:59 +03:00
},
inputs: 1,
outputs: 3,
2023-10-03 17:15:20 +03:00
outputLabels: ["mqtt_debug","state_text","current_temp"],
2023-10-03 16:59:59 +03:00
icon: "font-awesome/fa-snowflake-o",
label: function() {
return this.name||"Th-analyzer";
}
});
</script>
<script type="text/html" data-template-name="c-thermostat-analyzer">
<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>
2023-10-04 22:16:43 +03:00
<div class="form-row">
<label for="node-input-status_window"><i class="fa fa-tag"></i> Status window (in hours)</label>
<input type="text" id="node-input-status_window" placeholder="4">
</div>
<div class="form-row">
<label for="node-input-transitions_window"><i class="fa fa-tag"></i> Transitions window (in hours)</label>
<input type="text" id="node-input-transitions_window" placeholder="5">
</div>
2023-10-03 16:59:59 +03:00
</script>
<script type="text/html" data-help-name="c-thermostat-analyzer">
<p>c-thermostat/p>
</script>