@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.
46 lines (41 loc) • 1.85 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('bool-toggle', {
category: 'parallax',
color: '#C0C0C0',
defaults: {
name: { value: "" }
},
inputs: 1,
outputs: 2,
icon: "font-awesome/fa-toggle-on", // Replace with a relevant icon
label: function() {
return this.name || "toggle";
},
labelStyle: function() {
return this.name ? "toggle" : "";
}
});
</script>
<script type="text/html" data-template-name="bool-toggle">
<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>
<small id="inputHelpBlock" class="form-text text-muted">
<p>Use the input-select node to specify the input to trigger. 1-Set, 2-Reset, 3-Toggle<br>
Expects: JSON Object, i.e.: {"Input":1,"Value":true} </p>
</small>
</script>
<script type="text/html" data-help-name="bool-toggle">
<p>A high trigger on Input1 (SET) causes out1 to go high, and out 2 low. A high trigger on Input2 (RESET) causes out1 low and out2 high. A high trigger on Input3 (TOGGLE) will flip the current state of out1 and out2. </p>
<p>[Expected: connect the input-select node to the input of the toggle node. Selections include: 1-Set, 2-Reset, 3-Toggle. </p>
</script>