UNPKG

node-red-contrib-datacake-helpers

Version:

Node-RED nodes to interact with the Datacake GraphQL API for KPIs and device stats. Includes other helper nodes for device management.

42 lines (40 loc) 1.76 kB
<script type="text/javascript"> RED.nodes.registerType('datacakegraphql-config', { category: 'config', defaults: { name: { value: "" }, workspaceUuid: { value: "", required: true } }, credentials: { workspaceToken: { type: "password", required: true } }, label: function() { return this.name || "Datacake GraphQL"; } }); </script> <script type="text/html" data-template-name="datacakegraphql-config"> <div class="form-row"> <label for="node-config-input-name"><i class="fa fa-tag"></i> Name</label> <input type="text" id="node-config-input-name" placeholder="Name"> </div> <div class="form-row"> <label for="node-config-input-workspaceUuid"><i class="fa fa-id-card"></i> Workspace UUID</label> <input type="text" id="node-config-input-workspaceUuid" placeholder="Workspace UUID"> </div> <div class="form-row"> <label for="node-config-input-workspaceToken"><i class="fa fa-key"></i> Workspace Token</label> <input type="password" id="node-config-input-workspaceToken" placeholder="Workspace Token"> </div> </script> <script type="text/html" data-help-name="datacakegraphql-config"> <p>Datacake GraphQL API configuration node.</p> <p>This node stores the configuration for connecting to the Datacake GraphQL API.</p> <h3>Configuration</h3> <dl class="message-properties"> <dt>Workspace UUID <span class="property-type">string</span></dt> <dd>The UUID of your Datacake workspace.</dd> <dt>Workspace Token <span class="property-type">password</span></dt> <dd>The API token for your Datacake workspace.</dd> </dl> </script>