Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

lifx-simple

Controlling LiFX bulbs using command line. Supports colour setting with 2.0 firmware

Supported actions

Colour setting via including hue, saturation, brightness and temperature. Sends packet multiple times based on the retries defined in the file itself. Hue ranges between 0-360, saturation and brightness between 0 and 100 and temperature between 2500 and 9000.

Example usage

Setting hue to 120, saturation to 50, brightness to 100 and temperature to 3500K ./set_colour.py 192.168.2.222 120 50 100 3500

Webservice

I have also included simple webservice that stays loaded and listens to ACKs for the colour packets. Bottle is used to provide simple HTTP API. Only colour setting is supported, akin to the standalone command-line version. The packet parsing functionality is separated into receive.py. Despite the tool's simplicity, an effort has been made for all of the operations to be thread-safe and is intended for production use. Please report any issues!

Example URL: http://localhost:8888/192.168.2.222/90/100/100/3500

Requirements

  • Python 2.7
  • Knowledge of the IP address of the bulb. You can configure your router to assign static IPs to the bulbs, this eliminates any need of discovery
  • see requirements.txt to run built-in webservice

Tested on Linux (raspberry PI) and Mac OS 10.9

Resources

About

Controlling LiFX bulbs using command line. Pure Python 2.7

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.