UNPKG

@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.

54 lines (50 loc) 2 kB
<script type="text/javascript"> RED.nodes.registerType('biamp-tesira-connect', { category: 'parallax', color: '#C0C0C0', defaults: { name: { value: "" }, ip: { value: "", required: true, validate: RED.validators.regex(/^(\d{1,3}\.){3}\d{1,3}$/) }, // New IP address field with validation user: { value: "admin"}, // Default username pass: { value: "" } }, inputs: 1, outputs: 1, icon: "font-awesome/fa-server", // Replace with a relevant icon label: function() { return this.name || "biamp-tesira-connect"; }, labelStyle: function() { return this.name ? "biamp-tesira-connect" : ""; } }); </script> <script type="text/html" data-template-name="biamp-tesira-connect"> <!-- 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> <!-- ip address --> <div class="form-row"> <label for="node-input-ip"><i class="icon-globe"></i> IP Address</label> <input type="text" id="node-input-ip" placeholder="Enter the device IP address"> </div> <!-- username --> <div class="form-row"> <label for="node-input-user"><i class="icon-globe"></i> Username</label> <input type="text" id="node-input-user" value="admin" placeholder="Enter the username"> </div> <!-- password --> <div class="form-row"> <label for="node-input-pass"><i class="icon-globe"></i> Password</label> <input type="text" id="node-input-pass" placeholder="Enter the password"> </div> <!-- info --> <small id="inputHelpBlock" class="form-text text-muted"> <p>Enter device IP, Username and Password<br> </small> </script> <script type="text/html" data-help-name="biamp-tesira-connect"> <p>Connect to Tesira device</p> </script>