38 lines
996 B
HTML
38 lines
996 B
HTML
|
|
<script type="text/javascript">
|
||
|
|
//RED.log.error(
|
||
|
|
console.error("Bluetti PLEASE register me!");
|
||
|
|
//(function() {
|
||
|
|
// 'use strict';
|
||
|
|
// RED.log.error(*Bluetti HTML register");
|
||
|
|
|
||
|
|
RED.nodes.registerType('bluetti', {
|
||
|
|
category: 'function',
|
||
|
|
color: '#a6bbcf',
|
||
|
|
defaults: {
|
||
|
|
name: {value:""},
|
||
|
|
},
|
||
|
|
inputs: 1,
|
||
|
|
outputs: 1,
|
||
|
|
inputLabels: "Generic Bluetti message",
|
||
|
|
label: function() {
|
||
|
|
return this.name || "bluetti";
|
||
|
|
},
|
||
|
|
icon: "bluetti.png"
|
||
|
|
});
|
||
|
|
console.error("Bluetti registered HTML");
|
||
|
|
|
||
|
|
//}());
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<script type="text/html" data-template-name="bluetti">
|
||
|
|
<div class="form-row">
|
||
|
|
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
||
|
|
<input type="text" id="node-input-name" placeholder="Name">
|
||
|
|
</div>
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<script type="text/html" data-help-name="bluetti">
|
||
|
|
<p>A node that converts the bluetti message payloads into breakout streams</p>
|
||
|
|
</script>
|
||
|
|
|