From 7991fb4f298c943b621fb1b21d6b332c49e85031 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Mon, 2 Oct 2023 22:32:55 +0300 Subject: [PATCH] update --- thermostat.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/thermostat.js b/thermostat.js index 006b35e..7bea76c 100644 --- a/thermostat.js +++ b/thermostat.js @@ -1,11 +1,19 @@ module.exports = function(RED) { - function LowerCaseNode(config) { + function thermostat(config) { RED.nodes.createNode(this,config); var node = this; node.on('input', function(msg) { - msg.payload = msg.payload.toLowerCase(); + msg.payload = msg.payload.toUpperCase(); node.send(msg); }); } - RED.nodes.registerType("lower-case",LowerCaseNode); + RED.nodes.registerType("thermostat",{ + "category": "thermostat", + "defaults": { + name: { + value: "C-Thermostat" + } + } + }, + ); }