UNPKG

node-red-contrib-netbeast

Version:
59 lines (50 loc) 1.94 kB
<!-- Copyright 2016 Netbeast. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <script type="text/javascript"> RED.nodes.registerType('netbeast-trigger',{ category: 'IoT', color: '#3FADB5', defaults: { name: { value:'' }, topic: { value: '#' } }, outputs: 1, icon: 'feed.png', align: 'left', label: function() { return this.name || 'Netbeast Trigger' }, labelStyle: function() { return this.name ? 'node_label_italic' : '' } }) </script> <script type="text/x-red" data-template-name="netbeast-trigger"> <div class="form-row"> <label for="node-input-name"><i class="icon-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="A name for your node"> </div> <div class="form-row"> <label for="node-input-name"><i class="icon-tag"></i> Topic</label> <input type="text" id="node-input-topic" placeholder="Temperature"> </div> </script> <script type="text/x-red" data-help-name="netbeast-trigger"> <p> A node for Netbeast Dashboard API. This node listens for topic events and information to be shared through mqtt broker on a Netbeast and sends its content forward to the next node. For full info about topics and arguments, have a look at <a href="//docs.netbeast.co">Netbeast API docs</a>. </p> </script>