https://github.com/stjohnjohnson/mqtt-telegram
Transfers Images from MQTT to Telegram
https://github.com/stjohnjohnson/mqtt-telegram
Last synced: about 1 year ago
JSON representation
Transfers Images from MQTT to Telegram
- Host: GitHub
- URL: https://github.com/stjohnjohnson/mqtt-telegram
- Owner: stjohnjohnson
- Created: 2016-03-17T22:48:24.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-18T22:05:58.000Z (about 10 years ago)
- Last Synced: 2024-12-08T13:46:13.167Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/mqtt-telegram
- Size: 9.77 KB
- Stars: 6
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MQTT Telegram
***Uploads MQTT images to Telegram users.***
[](https://github.com/stjohnjohnson/mqtt-telegram/releases)
[](https://hub.docker.com/r/stjohnjohnson/mqtt-telegram/)
[](https://hub.docker.com/r/stjohnjohnson/mqtt-telegram/)
# 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
1. Run the Docker container
```
$ docker run \
-d \
--name="mqtt-telegram" \
-v /opt/mqtt-telegram:/config \
-p 8080:8080 \
stjohnjohnson/mqtt-telegram
```
2. Customize the MQTT host and Telegram tokens
```
$ vi /opt/mqtt-telegram/config.yml
$ docker restart mqtt-telegram
```
3. Any images posted to those topics will be forwarded as photos to Telegram