mqtt-telegram

0.3.0 • Public • Published

MQTT Telegram

Uploads MQTT images to Telegram users.

GitHub tag Docker Pulls Docker Stars

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

Readme

Keywords

Package Sidebar

Install

npm i mqtt-telegram

Weekly Downloads

0

Version

0.3.0

License

MIT

Last publish

Collaborators

  • stjohnjohnson