Originally reproduce your screen mean color onto your LIFX bulb. Demo: THIS! original code from lifxscreen is https://github.com/frakman1/lifxscreen2)
With this version, LIFX is synced with iTune's BPMs (obtained thanks to Mixxx app).
Thanks to an update, now if you open Shazam on your mac (and thanks to spotify);
This software detect BPMs with your microphone!!!!
Use the branch firstTodo to use it with two lifx bulbs!!!!
Tested on a MacOs 10.13.4. and 10.11.6 Python version 2.7.14
##Prerequisites:
-
Pillow- Screen Grabber https://pypi.python.org/simple/pillow/ download the wheel (.whl): 5.0 for 10.11.6 and 5.1 for 10.13.4.
-
Colour - Colour Convertions and Manipulations (https://pypi.python.org/pypi/colour/)
-
Lazylights - The actual LIFX driver. https://github.com/mpapi/lazylights/tree/2.0
on terminal:
pip install git+https://github.com/mpapi/lazylights@2.0
pip install colour
pip install (drag&drop downloaded wheel into your terminal to obtain the path)
pip install requests
pip install spotipy
pip install six
export SPOTIPY_CLIENT_ID='your ID' export SPOTIPY_CLIENT_SECRET='your password'
more info on: https://spotipy.readthedocs.io/en/latest/#installation