@strato-automation/node-red-contrib-strato-automation
Version:
Strato Automation Official Node Red Library
26 lines (23 loc) • 1.02 kB
HTML
<!-- CodeRabbit: BACnet connection node registration -->
<script type="text/javascript">
RED.nodes.registerType("bacnet-conn",{
category:"config",
defaults:{ name:{value:""} },
credentials:{ bearerToken:{type:"password"}, allowInsecureTls:{type:"checkbox"} },
label:function(){ return this.name||"BACnet Auth"; }
});
</script>
<script type="text/html" data-template-name="bacnet-conn">
<div class="form-row">
<label for="node-config-input-name">Name</label>
<input type="text" id="node-config-input-name" placeholder="BACnet Auth">
</div>
<div class="form-row">
<label for="node-config-input-bearerToken">Bearer</label>
<input type="password" id="node-config-input-bearerToken" placeholder="Paste bearer token">
<label style="margin-left:8px"><input type="checkbox" id="node-config-input-allowInsecureTls"> Allow self-signed TLS</label>
</div>
</script>
<script type="text/html" data-help-name="bacnet-conn">
<p>Stores bearer token and TLS option for BACnet API.</p>
</script>