Giter VIP home page Giter VIP logo

teslamate-telegram's Introduction

TeslaMate to Telegram

Script that collects data from the Teslamate via MQTT and sends messages to a Telegram chatbot.

Requirements

  • Python 2.7+
  • Install dependencies of Python included in requirements.txt

Instructions

  1. Install all dependencies of Python
pip install -r requirements.txt
  1. Create the config.py file
  2. Configure the variables of your MQTT of Teslamate and ABRP inside config.py file
MQTT_SERVER = "@@@@@@@@"                              # MQTT server address (e.g. "127.0.0.1")
MQTT_PORT = "@@@@"                                    # MQTT server port (e.g. "1883")
BOT_TOKEN = "@@@@@@@@@@:@@@@@@@@@@@@@@@@@@@@"         # Bot token
BOT_CHAT_ID = "@@@@@@@@@@"                            # Chat ID
OPTIONS = "update_version"                            # Select options to send notification (options: state, update_version, display_name, (e.g. "state|update_version"))  
CAR_ID = "1"                                          # Car number (usually 1 if you only have a car)
SEND_RESUME = True/False                              # Enable or disable resume when state change to sleep
DEBUG = True/False                                    # Enable or disable debug mode
  1. Run the script
  • Run on command line (ideal for testing)
python ./teslamateMqttToTelegram.py
  • Run in the background
nohup python ./teslamateMqttToTelegram.py & > /dev/null 2>&1

Credits

teslamate-telegram's People

Contributors

carloscuezva avatar nihilimbo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.