/mediocre

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

Primary LanguageC#

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