Giter Club home page Giter Club logo

telegram2mqtt's Introduction

telegram2mqtt

telegram2mqtt is a small python program that is using the python telegram bot to download voice messages, hosting them through a simple webserver and sends informations regarding those messages to an mqtt server.

In combination with something like Home Assistant you can automatically playback those messages at Home.

There is only support for normal text messages and voice recordings atm, but i will improve this in the future (i hope ;) )

In this repository you will also find a Dockerfile to build a compatible Container, the program requires a config.yaml to work correctly inside a conf folder, the downloaded voice files will be stored inside a web folder inside the conf directory.

  /opt/tel2mqtt
  /opt/tel2mqtt/telegram2mqtt.py
  /opt/tel2mqtt/conf
  /opt/tel2mqtt/conf/config.yaml
  /opt/tel2mqtt/conf/web

If you are using docker map the config directory to a place outside of the container.

You can find a simple home assistant integration example here: https://github.com/sonicnkt/telegram2mqtt/blob/master/ha_config.yaml

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.