awox-smartlight
v1.2.0
Published
Control Awox smartlight from nodejs
Downloads
19
Readme
awox-smartlight
Control Awox smartlight from nodejs
This will allow you to control Awox smartlight from nodejs or the command-line. I have only tested with SML-C9 bulbs.
command-line
You can install it for your system with this:
npm i -g awox-smartlight
Now, you can use it like this:
Usage: awoxlight <COMMAND>
Commands:
scan Scan for lightbulbs
on <mac> Turn on lightbulb
off <mac> Turn off lightbulb
temp <mac> <color> Set the color-temperature of the
lightbulb (for those that support
it)
hex <mac> <color> Set color of lightbulb using hex
color (for those that support it)
hsb <mac> <hue> <saturation> <brightness> Set color of lightbulb using HSB
color (for those that support it)
details <ip> 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:
const AwoxSmartLight = require('awox-smartlight')
or for ES6:
import AwoxSmartLight from 'awox-smartlight'