@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.
55 lines (51 loc) • 2.2 kB
HTML
<!--
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('or-gate', {
category: 'parallax',
color: '#C0C0C0',
defaults: {
name: {value: ""},
numInputs: { value: 2, required: true }
},
inputs: 1,
outputs: 1,
icon: "arrow-in.svg",
label: function() {
return this.name || "or-gate";
},
labelStyle: function() {
return this.name ? "node_label_italic" : "";
}
});
</script>
<script type="text/html" data-template-name="or-gate">
<!-- -->
<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>
<!-- Inputs -->
<div class="form-row">
<label for="node-input-numInputs"><i class="icon-tag"></i> Number of Inputs</label>
<input type="number" id="node-input-numInputs" placeholder="Number of inputs">
</div>
<!-- -->
<small id="inputHelpBlock" class="form-text text-muted">
<p>If any input is true, the output will be true.<br>
Expects: JSON Object, i.e.: {"Input":1,"Value":true} </p>
</small>
</script>
<script type="text/html" data-help-name="or-gate">
<p>Logic Node: This node acts as an OR logic gate, emitting true if any input is true.</p>
<p>Note: Drive this signal with the 'Input Select' node.</p>
<p>Expects: JSON Object, i.e.: {"Input":1,"Value":true}</p>
<p><strong>LLM Instructions:</strong> Logic Node - Use when any one of multiple conditions can trigger an action. NOT for all-conditions-required scenarios (use and-gate) or hardware I/O (use cm4-pro nodes). Outputs true when any input is true.</p>
</script>