LIFX Movie experience. Continuously calculates the average colour of your screen and sets your LIFX bulb(s) to that color.
Watch movies (or anything you want on your screen) in style. Like THIS!
(seeks to improve over the original lifxscreen at https://github.com/frakman1/lifxscreen)
- This version uses the much faster LAN protocol (vs the slower HTTP API).
- Splits the screen into left and right segments and allows you to control two sets of bulbs independently.
- Crops the screen so as not to take the black portion into account when calculating the average colour.
- Better black screen colour handling.
Tested on a Windows-7, 64bit machine. Python version 2.7.5.
-
PIL - Screen Grabber which relies on VCForPython27
-
colour - Colour Convertions and Manipulations (https://pypi.python.org/pypi/colour/)
-
lazylights - The actual LIFX driver. https://github.com/mpapi/lazylights/tree/2.0
(Be sure to install the 2.0 branch of lazylights)
pip install git+https://github.com/mpapi/[email protected]
- Around line 41 (createBulb('10.10.10.2','XX:XX:XX:XX:XX:XX')) , Replace both the IP address and 'XX:XX:XX:XX:XX:XX' with the MAC addresses of your bulbs. You should be able to find the MAC Address on the bulb itself, or on your router page, or by using my iOS app LIFX Ambience
python lifxscreen2.py
...trivial change