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.

58 lines (54 loc) 2.32 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('recall-signal-state',{ category: 'parallax', // Category in palette color: '#C0C0C0', // Color in palette defaults: { name: {value:"recall-signal-state"}, // Default name of the node dataType: {value:"", required:true} // Data type selection }, inputs:1, // Number of input ports outputs:1, // Number of output ports icon: "font-awesome/fa-undo", // Icon shown in palette label: function() { return this.name || "recall-signal-state"; }, oneditprepare: function() { // Code to run when the edit dialog is opened } }); </script> <script type="text/html" data-template-name="recall-signal-state"> <!-- 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> <!-- Dropdown --> <div class="form-row"> <label for="node-input-dataType"><i class="icon-tag"></i> Data Type</label> <select id="node-input-dataType"> <option value="DIGITAL">Digital</option> <option value="ANALOG">Analog</option> <option value="SERIAL">Serial</option> <option value="DIGITAL_DICTIONARY">Digital Dictionary</option> <option value="ANALOG_DICTIONARY">Analog Dictionary</option> <option value="SERIAL_DICTIONARY">Serial Dictionary</option> </select> </div> <!-- Node Property Window Notes --> <div> <small>Recalls data based on the selected data type.</small> </div> </script> <script type="text/html" data-help-name="recall-signal-state"> <p>This node allows recalling of stored data based on the selected data type.</p> </script>