Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rreusser/lifx-server
A server built on the node package to connect to LIFX LED lightbulbs
https://github.com/rreusser/lifx-server
Last synced: 7 days ago
JSON representation
A server built on the node package to connect to LIFX LED lightbulbs
- Host: GitHub
- URL: https://github.com/rreusser/lifx-server
- Owner: rreusser
- Created: 2014-03-05T01:44:42.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-10T22:26:53.000Z (almost 11 years ago)
- Last Synced: 2024-10-26T12:17:58.549Z (2 months ago)
- Language: Python
- Size: 141 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lifx-server
This is a very minimal server built on the NodeJS client at https://www.npmjs.org/package/lifx. I want to do so many cool things with my lightbulbs, but I don't know how to do most of them in Javascript (hardware in particular!), so I wanted an abstraction layer. My solution was to create a thin server layer that receives simple JSON requests via TCP and dispatches the results via the NodeJS client. I'm sure someone can do a million times better; I just want to talk to my bulbs!
Demo (source code in scripts/python/audio.py): http://instagram.com/p/lJf0z7GZ1w/
## InstallThe server is just a thin shell around the (outstanding!) LIFX nodejs package at https://www.npmjs.org/package/lifx, so you obviously need to have that installed:
$ npm install lifx
## Run
To start the server and connect to your bulbs:
$ node lifx-server.js
To run the sample programs:
$ python scripts/python/test.py
$ ruby scripts/ruby/test.py## License
License? Do what you want. Let me know. Give credit to the guy who reverse-engineered the protocol. MIT? Sure. Yeah, that sounds like a thing people do. MIT.