A python script that continuously changes Hue lightbulb colors based on what's displayed on the screen. This script uses the Quartz.CoreGraphics module, which is Mac specific.
How to use
macOS with Xcode & command line tools installed. Tested with macOS 10.12 (Sierra).
Quartz.CoreGraphics python module
pip install -U pyobjc-core pip install -U pyobjc
PHue python module
pip install phue
git clone email@example.com:G2Jose/AmbienceHue.git
- Change the value of
BRIDGE_IPto the IP address of your Hue Bridge. You can find this by logging into your Router's admin page.
- Change the
RIGHT_LIGHTparameters to match your setup. This might require some trial to figure out what numbers map to what lights.
- The transition time is set to 0.1 ds (0.1 * 1/10th of a second) to avoid the appearance of the lights flickering.
- By default, the script only watches a strip 1/20th the width of the screen on each side. This setting can be changed by modifying the
Navigate to the directory containing the script
Launch the script using python (tested on 3.5.2)
In case of bugs or issues, get in touch through www.georgejose.com or file a github issue!