Update README.md

This commit is contained in:
Naveen A.B 2020-06-29 17:11:06 +05:30 committed by GitHub
parent 3302d0e400
commit 8a664b369c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -9,12 +9,13 @@ Python based Telegram bot to monitor and control the raspberry pi.
sudo pip install telepot sudo pip install telepot
``` ```
- Request the BotFather to create a new Bot. - Request the BotFather to create a new Bot.
- Paste the HTTP access token here : - Paste the HTTP access token here:
``` ```
bot = telepot.Bot(' Enter your Telegram bot API token here ') bot = telepot.Bot(' Enter your Telegram bot API token here ')
``` ```
- Run *gpiotel20.py* as sudo - Run *gpiotel20.py* as sudo
- Try out the commands given below in the Telegram bot chat (see Usage section below) - Try out the commands given below in the Telegram bot chat (see Usage section below)
- GPIO of led1 and led2 set as 5 and 10 respectively.
## Commands: ## Commands:
@ -34,9 +35,9 @@ Python based Telegram bot to monitor and control the raspberry pi.
- shutdown - Shutdown RPi (sudo shutdown -h now) - shutdown - Shutdown RPi (sudo shutdown -h now)
- reboot - Reboot RPi (sudo reboot) - reboot - Reboot RPi (sudo reboot)
## Usage : ## Usage:
- Use ' / ' before each command - Use ' / ' before each command
- Example : To check the CPU Temperature; - Example: To check the CPU Temperature;
``` ```
/temp /temp
``` ```