UNPKG

netbeast

Version:

Resources for node.js wrapper

13 lines (9 loc) 274 B
var netbeast = require('..') netbeast.find().then(function () { var color = 0 setInterval(function () { color += 2000 var colorHue = Math.floor(color % 360) netbeast('lights').set({power: 1, brightness: 100, hue: colorHue, saturation: 100}) }, 1000) })