Skip to content
control awox smartlight with nodejs
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src make all function to works Oct 3, 2017
.gitignore
LICENSE
README.md
package.json

README.md

tested with LB120

awox-smartlight

Control Awox smartlight from nodejs

NPM

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'
You can’t perform that action at this time.