mqtt-telegram
v0.3.0
Published
Transfers Images from MQTT to Telegram
Downloads
7
Readme
MQTT Telegram
Uploads MQTT images to Telegram users.
Configuration
The telegram bridge has one yaml file for configuration:
---
mqtt:
# Specify your MQTT Broker's hostname or IP address here
host: localhost
telegram:
# Token to talk to Telegram
token: INSERT_TOKEN_HERE
# Where to send events to
topics:
sample/topic:
- INSERT_CHAT_ID
Usage
Run the Docker container
$ docker run \ -d \ --name="mqtt-telegram" \ -v /opt/mqtt-telegram:/config \ -p 8080:8080 \ stjohnjohnson/mqtt-telegram
Customize the MQTT host and Telegram tokens
$ vi /opt/mqtt-telegram/config.yml $ docker restart mqtt-telegram
Any images posted to those topics will be forwarded as photos to Telegram