node-red-contrib-boolean-logic-ultimate
Advanced tools
Comparing version 1.1.15 to 1.1.16
@@ -12,4 +12,4 @@ | ||
setNodeStatus({ fill: "grey", shape: "dot", text: "Waiting" }); | ||
5 | ||
RED.httpAdmin.post("/InjectUltimate/:id", RED.auth.needsPermission("InjectUltimate.write"), function (req, res) { | ||
@@ -16,0 +16,0 @@ var node = RED.nodes.getNode(req.params.id); |
@@ -41,2 +41,8 @@ module.exports = function (RED) { | ||
this.on("input", function (msg) { | ||
// Backward compatibility | ||
// Pass msg.payload = false switches the msg input to the UPPER output | ||
// Pass msg.payload = true switches the msg input to the LOWER output | ||
if (msg.payload === false) msg.payload = '0'; | ||
if (msg.payload === true) msg.payload = '1'; | ||
var sIncomingTopic = ""; | ||
@@ -74,7 +80,2 @@ if (msg.hasOwnProperty("topic")) { | ||
// Backward compatibility | ||
// Pass msg.payload = false switches the msg input to the UPPER output | ||
// Pass msg.payload = true switches the msg input to the LOWER output | ||
if (msg.payload === false) msg.payload = '0'; | ||
if (msg.payload === true) msg.payload = '1'; | ||
node.sRailway = msg.payload; | ||
@@ -81,0 +82,0 @@ node.alignStatus(); |
@@ -7,2 +7,6 @@ # node-red-contrib-boolean-logic-ultimate | ||
<p> | ||
<b>Version 1.1.16</b> August 2024<br/> | ||
- Railway Switcher: fixed an issue for backward compatibility of true/false input msg.</br> | ||
</p> | ||
<p> | ||
<b>Version 1.1.15</b> August 2024<br/> | ||
@@ -9,0 +13,0 @@ - Railway Switcher: now you can choose between 5 different output instead of 2.</br> |
{ | ||
"name": "node-red-contrib-boolean-logic-ultimate", | ||
"version": "1.1.15", | ||
"version": "1.1.16", | ||
"description": "A set of Node-RED enhanced boolean logic and utility nodes, flow interruption, blinker, invert, filter, toggle etc.., with persistent values after reboot. Compatible also with Homeassistant values.", | ||
@@ -5,0 +5,0 @@ "author": "Supergiovane (https://github.com/Supergiovane)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1332371
1452