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.

51 lines (47 loc) 1.73 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('cm4-pro-relay', { category: 'parallax', color: '#C0C0C0', defaults: { name: { value: "" }, numInputs: { value: 2, required: true } }, inputs: 1, outputs: 4, icon: "font-awesome/fa-arrows-v", label: function() { return this.name || "cm4-pro-relay"; }, labelStyle: function() { return this.name ? "node_label_italic" : ""; } }); </script> <script type="text/html" data-template-name="cm4-pro-relay"> <!-- Name --> <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> <small> <p>Use input-select node to trigger relay. </p> <p>Input Selection: 1-Open Relay, 2-Close Relay </p> <p>Expects: JSON Object, i.e.: {"Input":1,"Value":true} </p> </small> </div> </script> <script type="text/html" data-help-name="cm4-pro-relay"> <p>Use input-select node to trigger relay. </p> <p>Input Selection: 1-Relay On, 2-Relay Off </p> <p>Expects: JSON Object, i.e.: {"Input":1,"Value":true} </p> </script>