node-red-contrib-mobius-flow-dali
Version:
Node-RED nodes to work with MOBiUSFlow and DALI devices
95 lines (89 loc) • 3.9 kB
HTML
<!--
Copyright (C) 2020, IAConnects Technology Limited
All Rights Reserved
ALL INFORMATION CONTAINED HEREIN IS, AND REMAINS
THE PROPERTY OF IACONNECTS TECHNOLOGY LIMITED AND ITS SUPPLIERS,
IF ANY. THE INTELLECTUAL AND TECHNICAL CONCEPTS CONTAINED
HEREIN ARE PROPRIETARY TO IACONNECTS TECHNOLOGY LIMITED
AND ITS SUPPLIERS AND ARE PROTECTED BY TRADE SECRET OR COPYRIGHT LAW.
DISSEMINATION OF THIS INFORMATION OR REPRODUCTION OF THIS MATERIAL
IS STRICTLY FORBIDDEN UNLESS PRIOR WRITTEN PERMISSION IS OBTAINED
FROM IACONNECTS TECHNOLOGY LIMITED.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
-->
<script type="text/html" data-template-name="dali connection manager">
<div class="form-row">
<label for="node-input-daliConnection" style="width: 180px;"><i class="fa fa-globe"></i> Configure Connections</label>
<input type="text" id="node-input-daliConnection" style="width: 280px;">
</div>
<div id="nocons-message-row" class="form-row" style="color:#000000" align="center">
<p>This node is used for connection configuration<br/>
and debugging ONLY. Which ever connection is<br/>
selected within this node, will have no effect on<br/>
which connection is used in any other DALI node.</p>
</div>
<hr>
<div class="form-row">
<label for="node-input-name" style="width: 180px;"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" style="width: 280px;">
</div>
</script>
<script type="text/javascript">
function getLabel(conNode) {
return RED.nodes.node(conNode).name
}
RED.nodes.registerType('dali connection manager', {
category: 'dali',
color: '#ffe066',
defaults: {
name: {value: ''},
daliConnection: {value: "", type: 'dali-connection'}
},
inputs: 1,
outputs: 1,
icon: 'dali-icon.png',
align: 'left',
paletteLabel: 'dali connection manager',
label: function() {
return this.name||`DALI Connection Manager`;
},
labelStyle: function() {
return this.name ? 'node_label_italic':'';
}
});
</script>
<script type="text/html" data-help-name="dali connection manager">
<p>MOBiUS DALI Connection Manager.</p>
<h3>Configuration Page</h3>
<dl class="message-properties">
<dt>Configure Connections <span class="property-type">connection</span></dt>
<dd>Allows a connection to be added / selected and configured.</dd>
</dl>
<h3>Input: </h3>
<dl class="message-properties">
<dd>Any input message will trigger the node output all connector information
associated with the selected connection.</dd>
</dl>
<h3>Output: </h3>
<dl class="message-properties">
<dt>payload <span class="property-type">array</span></dt>
<dd>Array containing information on all connectors associated with selected connection</dd>
</dl>
<h3>Details</h3>
<p>This node is used for connection configuration and debugging ONLY.
Which ever connection is selected within this node, will have
no effect on which connection is used in any other DALI node.</p>
<p align="center" style="color:#000080">iaconnects © 2021</p>
<br>
<p align="center" style="color:#000080">ER 2021</p>
</script>