@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) • 1.93 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('extract-message-data', {
category: 'parallax',
color: '#C0C0C0',
defaults: {
name: { value: "" },
objectToGet: { value: "", required: true }
},
inputs: 1,
outputs: 1,
icon: "font-awesome/fa-file-o",
label: function() {
return this.name || "Extract Message Data";
},
oneditprepare: function() {
// Code to run when the editor is opened
}
});
</script>
<script type="text/html" data-template-name="extract-message-data">
<!-- 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>
<!-- Dropdown -->
<div class="form-row">
<label for="node-input-objectToGet"><i class="icon-tag"></i> Object To Get</label>
<select id="node-input-objectToGet">
<option value="Type">Type</option>
<option value="JoinID">JoinID</option>
<option value="Value">Value</option>
</select>
</div>
<!-- Node Property Window Notes -->
<div>
<small>Extracts specific object from the incoming message.</small>
</div>
</script>
<script type="text/html" data-help-name="extract-message-data">
<p>This node extracts specific data from a message object based on the selected option.</p>
</script>