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 (61 loc) 2.49 kB
<script type="text/javascript"> RED.nodes.registerType('send-single-dictionary', { category: 'parallax', color: '#C0C0C0', defaults: { name: { value: "" }, joinID: { value: "", required: true }, key: { value: "", required: true }, dictionaryType: { value: "", required: true } }, inputs: 1, outputs: 1, icon: "font-awesome/fa-book", label: function() { return this.name || "send-single-dictionary"; }, labelStyle: function() { return this.name ? "node_label_italic" : ""; } }); </script> <script type="text/html" data-template-name="send-single-dictionary"> <!-- 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 --> <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> <!-- Key --> <div class="form-row"> <label for="node-input-key"><i class="icon-tag"></i> Dictionary Key</label> <input type="text" id="node-input-key" placeholder="Key"> </div> <!-- Dropdown --> <div class="form-row"> <label for="node-input-dictionaryType"><i class="icon-tag"></i> Dictionary Type</label> <select id="node-input-dictionaryType"> <option value="digital">Digital</option> <option value="analog">Analog</option> <option value="serial">Serial</option> </select> </div> <!-- Node Property Window Notes --> <div> <small>Sets an element of a dictionary to a specified value.</small> </div> </script> <script type="text/html" data-help-name="send-single-dictionary"> <p>Feedback Node: This node creates a dictionary message with specified Join ID, Key, and Type. It supports digital, analog, and serial signal types.</p> <p>Select the appropriate Dictionary Type based on the incoming msg.payload:</p> <ul> <li>Digital: Boolean values</li> <li>Analog: Numeric values</li> <li>Serial: String values</li> </ul> <p>[Configuration: JoinID (string), Key (string), DictionaryType (DropDown), Input: Accepts msg.payload of associated data type to assignt to the value.]</p>d </script>