UNPKG

node-red-contrib-viseo-sensit

Version:

VISEO Bot Maker - Sensit (sigfox) API

63 lines (60 loc) 2.83 kB
<script type="text/javascript"> RED.nodes.registerType('sensit',{ category: '🃏_miscellaneous', color: '#3FADB5', defaults: { name: { value: undefined }, token: { value: undefined }, device: { value: undefined }, sensor: { value: undefined }, startdate: { value: undefined }, enddate: { value: undefined }, }, inputs:1, outputs:1, icon: "cloud.svg", align: "left", paletteLabel: "Sensit", label: function() { return this.name || "Sensit"; }, oneditprepare: function() { $("#node-input-token").typedInput({ default: 'str', types: ['str'], type: 'str' }); $("#node-input-device").typedInput({ default: 'str', types: ['str'], type: 'str' }); $("#node-input-sensor").typedInput({ default: 'str', types: ['str'], type: 'str' }); $("#node-input-startdate").typedInput({ default: 'str', types: ['str'], type: 'str' }); $("#node-input-enddate").typedInput({ default: 'str', types: ['str'], type: 'str' }); }, }); </script> <script type="text/x-red" data-template-name="sensit"> <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-token"><i class="fa fa-lock"></i> Token</label> <input type="text" id="node-input-token" style="width:70%;" placeholder=""> </div> <div class="form-row"> <label for="node-input-device"><i class="fa fa-bolt"></i> Device Id</label> <input type="text" id="node-input-device" style="width:70%;" placeholder=""> </div> <div class="form-row"> <label for="node-input-sensor"><i class="fa fa-microchip"></i> Sensor Id</label> <input type="text" id="node-input-sensor" style="width:70%;" placeholder=""> </div> <div class="form-row"> <label for="node-input-startdate"><i class="fa fa-calendar"></i> Date after</label> <input type="text" id="node-input-startdate" style="width:70%;" placeholder="Format 2017-01-17T06:03Z"> </div> <div class="form-row"> <label for="node-input-enddate"><i class="fa fa-calendar"></i> Date before</label> <input type="text" id="node-input-enddate" style="width:70%;" placeholder="Format 2017-01-17T06:03Z"> </div> </script> <script type="text/x-red" data-help-name="sensit"> <p>Query Sensit (Sigfox) API</p> <h3>References</h3> <ul> <li><a href="https://github.com/NGRP/node-red-contrib-viseo/">VISEO BotMaker</a> - the nodes github repository</li> </ul> </script>