Docker application to get the average color of a webcam/video capture device and broadcast it over MQTT
Get it on DockerHub:
- Raspberry Pi version: https://hub.docker.com/r/whitebird/mqtt-ambilight-rpi/
- Regular version: https://hub.docker.com/r/whitebird/mqtt-ambilight/
To run the application:
- Copy
configuration.example.yaml
toconfiguration.yaml
and add your mqtt details. - Run it with a command like this:
docker run -it \
-v ~/mqtt-ambilight/configuration.yaml:/configuration.yaml \
--device=/dev/video0:/dev/video0 \
--net="host" \
-t mqtt-ambilight
There is a testing application in the tester
directory that connects with the mqtt details in configuration.yaml
. It shows a window with the published as the background color.
To use it you need to install the dependencies in requirements.txt
with: pip install -r requirements.txt
. Then run it with python main.py
.
Note: The tester tool is built with tkinter so it needs a desktop environment to work.