@parallaxcontrol/node-red-control
Advanced tools
Comparing version 1.0.38 to 1.0.39
{ | ||
"name": "@parallaxcontrol/node-red-control", | ||
"version": "1.0.38", | ||
"version": "1.0.39", | ||
"description": "A comprehensive package of Node-RED nodes designed to seamlessly integrate with the Parallax Control Engine, offering enhanced control capabilities for AV, IoT, and Industrial Automation.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,4 +8,4 @@ module.exports = function(RED) { | ||
node.on('input', function(msg) { | ||
switch(msg.Input) | ||
//set-reset-latch v2 | ||
switch(msg.payload.Input) | ||
{ | ||
@@ -12,0 +12,0 @@ case 1: |
@@ -13,2 +13,4 @@ const { exec } = require('child_process'); | ||
if(typeof msg.payload.Value === 'boolean'){ | ||
if(msg.payload.Value){ | ||
@@ -125,3 +127,9 @@ switch(node.selection) | ||
} | ||
} | ||
} | ||
else{ | ||
node.warn("Warning in Node: " + node.id + ", check node status for more information."); | ||
node.status({ fill: "red", shape: "ring", text:"Error: Expected type of Boolean value."}); | ||
return [[null]]; | ||
} | ||
// Execute the command if it's set | ||
@@ -128,0 +136,0 @@ if(command) { |
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
67573
897