Git Product home page Git Product logo

screensync's Introduction

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

screensync's People

Contributors

dewgenenny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

screensync's Issues

Screensync can't scan

Just today I noticed my screensync wont find any bulbs when I click scan. I hopped on and tried to update to the newest version but I can't seem to get that running. Did the dist folder go away? That's how I used to launch it.

I'm new to python so it very well could be me. Plz help me

Customizable color detection area?

This script works well, nice job. Is there a way I can adjust the color detection area? I use an ultrawide monitor and noticed it only captures a particular area, the top left corner and would like to maybe customize it. Thank you for all the good work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.