node-red-contrib-kbr-ebus
Version:
KBR Gmbh - nodes for accessing ebus devices
81 lines (79 loc) • 3.22 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('kbr-ebus-telex-creator',{
category: 'kbr',
color: '#d43f3a',
defaults: {
name: {value:""},
topic: {value:""},
from: {value:0,validate:RED.validators.number()},
to: {value:0,validate:RED.validators.number()},
data: {value:"[]"},
},
inputs:1,
inputLabels: "telex-parameter or out-signal",
outputs:1,
outputLabels: ["telex as byte array"],
icon: "inject.png",
align: 'right',
label: function() {
return this.name||"KBR eBus telex creator";
},
});
</script>
<script type="text/x-red" data-template-name="kbr-ebus-telex-creator">
<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 class="form-row">
<label for="node-input-topic"><i class="fa fa-tasks"></i> Topic</label>
<input type="text" id="node-input-topic" placeholder="Topic">
</div>
<div class="form-row">
<label for="node-config-input-from"><i class="icon-bookmark"></i> From-Address</label>
<input type="text" id="node-input-from">
</div>
<div class="form-row">
<label for="node-config-input-to"><i class="icon-bookmark"></i> To-Address</label>
<input type="text" id="node-input-to">
</div>
<div class="form-row">
<label for="node-config-input-data"><i class="icon-bookmark"></i> Data</label>
<input type="text" id="node-input-data">
<ul>
<li>For decimal values, separate the values with commas and enclose them with square brackets, e.g.: [1,2,3,20,40,60]</li>
<li>For hex values, separate the values with commas without square brackets, e.g.: 1,2,3,14,28,3c</li>
</ul>
</div>
</script>
<script type="text/x-red" data-help-name="kbr-ebus-telex-creator">
<p>Creates an KBR eBus telex as a bytes array.</p>
<h3>Inputs</h3>
<dl class="message-properties">
<dt>payload
<span class="property-type">string | buffer</span>
</dt>
<dd> the payload with the data properties. </dd>
<dt class="optional">from <span class="property-type">number</span></dt>
<dt class="optional">to <span class="property-type">number</span></dt>
<dt class="optional">data <span class="property-type">string</span></dt>
<dd> ...</dd>
</dl>
<h3>Outputs</h3>
<ol class="node-ports">
<li>Standard output
<dl class="message-properties">
<dt>payload <span class="property-type">string</span></dt>
<dd>the telex bytes.</dd>
</dl>
</li>
<li>Standard error
<dl class="message-properties">
<dt>payload <span class="property-type">string</span></dt>
<dd>the standard error of the command.</dd>
</dl>
</li>
</ol>
<h3>Details</h3>
<h3>References</h3>
</script>