node-red-contrib-tibber-api
Version:
Node Red module for integrating with Tibber api
37 lines (34 loc) • 1.14 kB
HTML
<script type="text/javascript">
RED.nodes.registerType("tibber-query", {
category: "Tibber API",
color: "#23B8CC",
defaults: {
name: {
value: ""
},
active: {
value: true
},
apiEndpointRef: { value: null, type: "tibber-api-endpoint" }
},
inputs: 1,
outputs: 1,
icon: "bridge.png",
label: function() {
return this.name || "tibber-query";
}
});
</script>
<script type="text/x-red" data-template-name="tibber-query">
<div class="form-row" style="white-space:nowrap;">
<label style="white-space:nowrap;" for="node-input-apiEndpointRef"><i class="icon-tag"></i> API Endpoint</label>
<input type="text" id="node-input-apiEndpointRef" placeholder="API Endpoint">
</div>
<div class="form-row" style="white-space:nowrap;">
<label style="white-space:nowrap;" for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="tibber-api">
<p>A simple node that enables you to query Tibber API.</p>
</script>