UNPKG

node-red-contrib-nanoleaf

Version:

[![platform](https://img.shields.io/badge/platform-Node--RED-red?logo=nodered)](https://nodered.org) [![Min Node Version](https://img.shields.io/node/v/node-red-contrib-nanoleaf.svg)](https://nodejs.org/en/) [![GitHub version](https://img.shields.io/githu

35 lines (33 loc) 1.28 kB
<script type="text/javascript"> RED.nodes.registerType('brightness', { category: 'nanoleaf', color: '#3eaf24', icon: 'nanoleaf_white.png', align: 'right', inputs: 1, outputs: 0, defaults: { name: { value: '' }, installation: { type: 'installation' } }, label: function () { return this.name || 'brightness'; } }); </script> <script type="text/x-red" data-template-name="brightness"> <div class="form-row"> <label for="node-input-name"><i class="fa fa-tag"></i> Name</label> <input type="text" id="node-input-name"/> </div> <div class="form-row"> <label for="node-input-installation"><i class="fa fa-tag"></i> Installation</label> <input type="text" id="node-input-installation"/> </div> </script> <script type="text/x-red" data-help-name="brightness"> <p>If the payload is a number. Set Nanoleaf Aurora brightness (integer; 0 -> 100).</p> <p>If the payload is an object of the form { brightness, duration } where brightness is integer; (0, 100] and duration is time to transition in seconds. Set the brightness over that duration.</p> </script>