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.

64 lines (59 loc) 2.41 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('set-feedback', { category: 'parallax', color: '#C0C0C0', inputs: 1, outputs: 1, icon: "font-awesome/fa-handshake-o", label: function() { return this.name || "set-feedback"; }, labelStyle: function() { return this.name ? "node_label_italic" : ""; }, defaults:{ name: { name: "", required: false }, JoinID: { value: "", required: true }, SigType: { value: "", required: true, options: ["digital","analog","serial"] } } }); </script> <script type="text/html" data-template-name="set-feedback"> <!-- 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> <!-- Join ID Input --> <div class="form-row"> <label for="node-input-JoinID"><i class="icon-tag"></i> Join ID</label> <input type="text" id="node-input-JoinID" placeholder="Join ID"> </div> <!-- Signal Type Dropdown --> <div class="form-row"> <label for="node-input-SigType"><i class="icon-tag"></i> Signal Type</label> <select id="node-input-SigType"> <option value="digital">Digital</option> <option value="analog">Analog</option> <option value="serial">Serial</option> </select> </div> <!-- Node Property Window Notes --> <div> <small>Digital = Bool, Analog = Number, Serial = String; pass the expected value to the node input. </small> </div> </script> <script type="text/html" data-help-name="set-feedback"> <p>This node sets feedback based on the provided JoinID, Signal Type and input value.</p> <p>[Configuration: User-defined JoinID and SigType]</p> <p>[Expected: msg.payload.Value (Boolean, Number, or String)]</p> </script>