UNPKG

node-red-contrib-nanoleaf-aurora

Version:

A node-red module, which provides nodes to manipulate a Nanoleaf Aurora installation.

17 lines (13 loc) 440 B
module.exports = function (RED) { 'use strict' function Identify(config) { RED.nodes.createNode(this, config) var node = this var installationObj = RED.nodes.getNode(config.installation) this.on('input', () => { installationObj.identify() .catch((err) => node.error(err.message, err)) }) } RED.nodes.registerType('identify', Identify) }