Skip to content
/ mediocre Public

Turn your Xiaomi Yeelight into an ambient light by synchronizing it with the average color of your screen 🐔

Notifications You must be signed in to change notification settings

bert2/mediocre

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mediocre

Turn your Xiaomi Yeelight into an ambient light by synchronizing it with the average color of your screen.

Quick start

Use the first Yeelight that is discovered and sync it with the average color of the primary screen:

PS> mediocre sync

Know problems

Average color is always black/dark when watching Netflix

Netflix' DRM protection might cause screenshots to only contain a black rectangle in place of the video image. This prevents mediocre from calculating the correct average color. The only solution I know is to use Netflix with Chrome or Firefox.

Not working:

  • Netflix Windows 10 Store App
  • Netflix in Internet Explorer, Edge, or Safari

Working:

  • Netflix in Chrome or Firefox

TODO

Basically everything is still work in progress. This is what's planned:

  • install via choco
  • select device (select all devices by default)
  • print runtime stats
  • select application instead of screen as capture surface?
  • send avg color to stdout (in configurable formats) to use mediocre with other devices
  • read colors from stdin (in different formats) to use mediocre with other tools that generate colors
  • list available devices
  • utilities like turn on/off, set color/brightness
  • verify BitBlt() does not need to convert the color format (minimize runtime costs)

Credits

About

Turn your Xiaomi Yeelight into an ambient light by synchronizing it with the average color of your screen 🐔

Topics

Resources

Stars

Watchers

Forks

Languages