UNPKG

@parallaxcontrol/node-red-control

Version:

A comprehensive package of Node-RED nodes designed to seamlessly integrate with the Parallax Control Engine, offering enhanced control capabilities for AV Automation.

46 lines (42 loc) 1.8 kB
<!-- Copyright (c) 2025 Parallax AV Design Inc. All rights reserved. This software is licensed, not sold. You may not copy, modify, merge, publish, distribute, sublicense, or sell copies of this file or substantial portions of it except as expressly permitted by the LICENSE file included with this package. Use is restricted to building manifests for the Parallax Control Node-RED nodes. See LICENSE for details. --> <script type="text/javascript"> RED.nodes.registerType('compare-string-text',{ category: 'parallax', color: '#C0C0C0', defaults: { name: {value:""}, stringToMatch: {value:"", required: true} }, inputs:1, outputs:1, icon: "font-awesome/fa-exchange", label: function() { return this.name || "compare-string-text"; } }); </script> <script type="text/html" data-template-name="compare-string-text"> <div class="form-row"> <label for="node-input-name"><i class="icon-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name"> </div> <div class="form-row"> <label for="node-input-stringToMatch"><i class="icon-tag"></i> String to Match</label> <input type="text" id="node-input-stringToMatch" placeholder="String to match"> </div> <small id="inputHelpBlock" class="form-text text-muted"> Enter text to compare. </small> </script> <script type="text/html" data-help-name="compare-string-text"> <p>Serial Node: This node compares the incoming payload value with the configured 'String to Match'. If they are equal, it outputs 'true' otherwise 'false'. The second output is used for error messages.</p> <p>[Expected: msg.payload.Value (string)]</p> </script>