Skip to content
No description, website, or topics provided.
Python Shell Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Dockerfile
README.md
api.py
entrypoint.sh
requirements.txt
wsgi.py

README.md

http_to_mqtt

Simple API for HTTP to MQTT. Based on jpowcode article and code(link seems down now).

To send message d in topic office/blinds:

http://127.0.0.1:5000/mqtt?topic=office/blinds&message=d
  1. Run server locally:
git clone
pip install -r requirements.txt
python app.py

for a more "cleaner" way you would use virtualenv for Python.

  1. Run server on docker:
docker run -e MQTT_HOST=127.0.0.1 -e BIND_HOST=0.0.0.0 -p 5000:5000 kuaaaly/http-to-mqtt:latest

You can use the following environement variables (those are defaults):

MQTT_HOST = 127.0.0.1
MQTT_PORT = 1883
BIND_HOST = 127.0.0.1
BIND_PORT = 5000
You can’t perform that action at this time.