Bump version to 0.1.7
This commit is contained in:
parent
5b70c61d68
commit
2c1c275e09
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vvzvlad/node-red-contrib-rn-combined-nodes",
|
||||
"version": "0.1.6",
|
||||
"version": "0.1.7",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
|
@ -4,7 +4,8 @@
|
||||
color: '#F3B567',
|
||||
paletteLabel: 'C-Thermostat',
|
||||
defaults: {
|
||||
name: {value:""}
|
||||
name: {value:"", required:true},
|
||||
tag: {value:""}
|
||||
},
|
||||
inputs: 1,
|
||||
outputs: 2,
|
||||
@ -21,6 +22,10 @@
|
||||
<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-tag"><i class="fa fa-tag"></i> Name</label>
|
||||
<input type="text" id="node-input-tag" placeholder="Tag">
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script type="text/html" data-help-name="c-thermostat">
|
||||
|
@ -1,9 +1,11 @@
|
||||
module.exports = function(RED) {
|
||||
function thermostat(config) {
|
||||
RED.nodes.createNode(this,config);
|
||||
this.tag = config.tag;
|
||||
var node = this;
|
||||
var context = node.context();
|
||||
|
||||
|
||||
const HEAT_ON_THRESHOLD = 0.2
|
||||
const HEAT_OFF_THRESHOLD = 0.2
|
||||
let debug = ""
|
||||
@ -177,7 +179,7 @@ module.exports = function(RED) {
|
||||
node.status({ text: debug_text("return_debug") })
|
||||
|
||||
let msg_heater_status = { payload: heater_status }
|
||||
let msg_extended_stats = { payload: extended_stats }
|
||||
let msg_extended_stats = { payload: extended_stats, topic: node.tag }
|
||||
|
||||
if (heater_status === null || typeof heater_status === "undefined") {
|
||||
msg_heater_status = null
|
||||
|
Loading…
Reference in New Issue
Block a user