Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dragouf/awox-smartlight
control awox smartlight with nodejs
https://github.com/dragouf/awox-smartlight
Last synced: about 2 months ago
JSON representation
control awox smartlight with nodejs
- Host: GitHub
- URL: https://github.com/dragouf/awox-smartlight
- Owner: dragouf
- License: mit
- Created: 2017-09-06T20:01:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-03T20:19:07.000Z (over 7 years ago)
- Last Synced: 2024-04-24T13:45:14.314Z (9 months ago)
- Language: JavaScript
- Size: 27.3 KB
- Stars: 27
- Watchers: 9
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# awox-smartlight
Control Awox smartlight from nodejs[![NPM](https://nodei.co/npm/awox-smartligth.png?compact=true)](https://nodei.co/npm/awox-smartlight/)
This will allow you to control Awox smartlight from nodejs or the command-line. I have only tested with [SML-C9](http://www.awox.com/awox_product/smartlight-c9-mesh-2/) 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: awoxlightCommands:
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 deviceOptions:
-?, --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](https://github.com/konsumer/tplink-lightbulb/wiki/Beatmatch) 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'
```