Code Monkey home page Code Monkey logo

mqtt-ambilight's Introduction

MQTT ambilight

Docker application to get the average color of a webcam/video capture device and broadcast it over MQTT

How to use

Get it on DockerHub:

To run the application:

  • Copy configuration.example.yaml to configuration.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

Debugging

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.

MQTT tester

mqtt-ambilight's People

Contributors

drskunk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

eddy0815

mqtt-ambilight's Issues

WHATTT?????

Copy configuration.example.yaml to configuration.example.yaml and add your mqtt details.

What??????

Copy a file to a file ?????????

docker run -it
-v ~/mqtt-ambilight/configuration.yaml...."WHATTTT????":/configuration.yaml WHATTT????
--device=/dev/video0:/dev/video0
--net="host"WHATTT????
-t mqtt-ambilightWHATTT????

What the f....????
You are Drunk????

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.