denistex / rpibot

Starter kit for Telegram bot that controls Raspberry Pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PRs Welcome

rpibot

This is a simple Telegram bot that allows you to read and write GPIO logic levels of your Raspberry Pi.

Installation

For Raspbian distro run following commands on your RPi to install required modules:

$ sudo aptitude update
$ sudo aptitude install -y -R git python3-pip python3-rpi.gpio

$ sudo pip3 install python-telegram-bot

$ git clone https://github.com/denis-it/rpibot.git
$ cd rpibot

Configuration

  1. Copy rpibot.ini_sample to rpibot.ini.
  2. Paste your telegram bot token in place of YOUR_TOKEN_HERE string.
$ cp rpibot.ini_sample rpibot.ini
$ editor rpibot.ini

Start

Just run rpibot.py script:

$ ./rpibot.py

Known issues

If you have found a bug or have a feature request - create an issue for it, please. Thanks.

About

Starter kit for Telegram bot that controls Raspberry Pi

License:MIT License


Languages

Language:Python 89.0%Language:Shell 11.0%