@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.
41 lines (38 loc) • 1.3 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('cm4-pro-relay', {
category: 'parallax',
color: '#C0C0C0',
defaults: {
name: { value: "" },
numInputs: { value: 2, required: true }
},
inputs: 1,
outputs: 4,
icon: "font-awesome/fa-arrows-v",
label: function() {
return this.name || "cm4-pro-relay";
},
labelStyle: function() {
return this.name ? "node_label_italic" : "";
}
});
</script>
<script type="text/html" data-template-name="cm4-pro-relay">
<!-- 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>
<div>
<small>
<p>Use input-select node to trigger relay. </p>
<p>Input Selection: 1-Open Relay, 2-Close Relay </p>
<p>Expects: JSON Object, i.e.: {"Input":1,"Value":true} </p>
</small>
</div>
</script>
<script type="text/html" data-help-name="cm4-pro-relay">
<p>Use input-select node to trigger relay. </p>
<p>Input Selection: 1-Relay On, 2-Relay Off </p>
<p>Expects: JSON Object, i.e.: {"Input":1,"Value":true} </p>
</script>