skullydazed / docker2mqtt Goto Github PK
View Code? Open in Web Editor NEWSend status information about docker containers to mqtt.
License: MIT License
Send status information about docker containers to mqtt.
License: MIT License
I would expect the timeout to also remove destroyed containers from the MQTT topics, but they are retained with status "destroyed". Is there a way to have these automatically removed after some time?
This isn't an issue, per se, but I like your python script and want it to work on Raspberry Pi, so I created:
https://github.com/dgmltn/docker2mqtt-rpi
Hopefully we can figure out how to wrap it into your repo here some day. The Dockerfile uses a different base image and leaves the get-docker.sh
script intact. So, that's really the only difference.
An optimization to the CONTAINER_DESTROYED_TTL could be to set these mqtt messages to expire with the TTL. This is part of the MQTT 5.0 spec. That way the mqtt broker takes care of cleaning them up and there is no issue if the docker2mqtt container is restarted before the TTL threshold is reached.
Additionally docker2mqtt could subscribe to its own topic, get all the retained messages on startup and check which should be removed. This could solve the edge case where a container is destroyed while docker2mqtt is not running.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.