https://github.com/bert2/mediocre
Turn your Xiaomi Yeelight into an ambient light by synchronizing it with the average color of your screen :chicken:
https://github.com/bert2/mediocre
ambient-light xiaomi-yeelight yeelight-api yeelight-devices
Last synced: about 1 month ago
JSON representation
Turn your Xiaomi Yeelight into an ambient light by synchronizing it with the average color of your screen :chicken:
- Host: GitHub
- URL: https://github.com/bert2/mediocre
- Owner: bert2
- Created: 2020-07-27T19:23:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-08T12:01:05.000Z (over 3 years ago)
- Last Synced: 2025-04-10T09:55:42.835Z (12 months ago)
- Topics: ambient-light, xiaomi-yeelight, yeelight-api, yeelight-devices
- Language: C#
- Homepage:
- Size: 46.9 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```powershell
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
- https://github.com/roddone/YeelightAPI
- https://github.com/commandlineparser/commandline