Skip to content

ScreenSync is a python utility to synchronise current displayed screen colour with a RGB LED strip using a 'Magic Home' type controller

License

Notifications You must be signed in to change notification settings

dewgenenny/ScreenSync

Repository files navigation

There is a new version available here: https://github.com/dewgenenny/ScreenSync_v2

Screen Sync is a python based utility to synchronise screen color with 'Magic Home' LED controllers.

It's a very early go at using the awesome flux_led library (https://github.com/beville/flux_led) to create a kind of cheap and cheerful 'philips hue light sync' experience.

So far I'm just using the "ImageGrab" and "ImageStat" modules from Pillow to generate a median color from the screen. It is working quite well, but no doubt it could be more performant with additional work.

You can find an automated standalone build for windows that was generated using pyinstaller under the 'dist' folder. Otherwise, you'll need to install the necessary dependencies - flux_led and Pillow

Installation

flux_led installation:

python3 -m pip install --upgrade Pillow

Pillow installation:

python3 -m pip install --upgrade flux_led

Running

usage: screensync.py

Update July 2022 - now added the option to choose the 'sensor size' in the GUI. This allows you to select the size of the bounding box where the image of the screen is sampled. Tiny and small are good for using with FPS games (this is my use case), large and xlarge probably better for watching videos or similar...

Screenshot

Here's a video of it in action - https://youtu.be/izCWz9-xkw4

About

ScreenSync is a python utility to synchronise current displayed screen colour with a RGB LED strip using a 'Magic Home' type controller

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages