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.

36 lines (33 loc) 1.36 kB
<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>