Control Awox smartlight from nodejs
npm install awox-smartlight
npm i -g awox-smartlight
`
Now, you can use it like this:
`
Usage: awoxlight
Commands:
scan Scan for lightbulbs
on Turn on lightbulb
off Turn off lightbulb
temp Set the color-temperature of the
lightbulb (for those that support
it)
hex Set color of lightbulb using hex
color (for those that support it)
hsb Set color of lightbulb using HSB
color (for those that support it)
details Get details about the device
Options:
-?, --help Show help [boolean]
Examples:
awoxlight scan -? Get more detailed help with scan command
awoxlight on -? Get more detailed help with on command
awoxlight off -? Get more detailed help with off command
awoxlight temp -? Get more detailed help with temp command
awoxlight hex -? Get more detailed help with hex command
awoxlight hsb -? Get more detailed help with hsb command
awoxlight details -? Get more detailed help with details command
`
sound
Kyle Dixon made a cool beat-match script for syncing lights to music.
library
You can install it in your project like this:
`
npm i -S awox-smartlight
`
Include it in your project like this:
`js
const AwoxSmartLight = require('awox-smartlight')
`
or for ES6:
`js
import AwoxSmartLight from 'awox-smartlight'
``