Update README.md
This commit is contained in:
parent
5e32a60015
commit
fe851b5be7
16
README.md
16
README.md
|
@ -2,13 +2,21 @@
|
||||||
|
|
||||||
Python based Telegram bot to monitor and control the raspberry pi.
|
Python based Telegram bot to monitor and control the raspberry pi.
|
||||||
|
|
||||||
Coming soon..
|
## Before you start
|
||||||
|
- Install telepot library for enabling the Raspberry Pi to communicate with the Telegram bot using the API.
|
||||||
|
```
|
||||||
|
sudo apt-get install python-pip
|
||||||
|
sudo pip install telepot
|
||||||
|
```
|
||||||
|
- Request the BotFather to create a new Bot.
|
||||||
|
- Paste the HTTP access token here :
|
||||||
|
```
|
||||||
|
bot = telepot.Bot(' Enter your Telegram bot API token here ')
|
||||||
|
```
|
||||||
## Commands:
|
## Commands:
|
||||||
|
|
||||||
|
|
||||||
|
- help - List of commands
|
||||||
- ledon1 - Switch on LED 1
|
- ledon1 - Switch on LED 1
|
||||||
- ledoff1 - Switch off LED 1
|
- ledoff1 - Switch off LED 1
|
||||||
- ledon2 - Switch on LED 2
|
- ledon2 - Switch on LED 2
|
||||||
|
|
Loading…
Reference in New Issue