@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.
53 lines (50 loc) • 1.93 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('set-feedback', {
category: 'parallax',
color: '#C0C0C0',
inputs: 1,
outputs: 1,
icon: "font-awesome/fa-handshake-o",
label: function() {
return this.name || "set-feedback";
},
labelStyle: function() {
return this.name ? "node_label_italic" : "";
},
defaults:{
name: { name: "", required: false },
JoinID: { value: "", required: true },
SigType: { value: "", required: true }
}
});
</script>
<script type="text/html" data-template-name="set-feedback">
<!-- 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 Input -->
<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>
<!-- Signal Type Dropdown -->
<div class="form-row">
<label for="node-input-SigType"><i class="icon-tag"></i> Signal Type</label>
<select id="node-input-SigType">
<option value="digital">Digital</option>
<option value="analog">Analog</option>
<option value="serial">Serial</option>
</select>
</div>
<!-- Node Property Window Notes -->
<div>
<small>Digital = Bool, Analog = Number, Serial = String; pass the expected value to the node input. </small>
</div>
</script>
<script type="text/html" data-help-name="set-feedback">
<p>This node sets feedback based on the provided JoinID, Signal Type and input value.</p>
<p>[Configuration: User-defined JoinID and SigType]</p>
<p>[Expected: msg.payload.Value (Boolean, Number, or String)]</p>
</script>