Update README.md

This commit is contained in:
Naveen A.B 2020-06-28 17:00:48 +05:30 committed by GitHub
parent 22673877ac
commit 0395255307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 8 deletions

View File

@ -13,6 +13,8 @@ Python based Telegram bot to monitor and control the raspberry pi.
```
bot = telepot.Bot(' Enter your Telegram bot API token here ')
```
- Run *gpiotel20.py* as sudo
- Try out the commands given below in the Telegram bot chat (see Usage section below)
## Commands:
@ -21,20 +23,20 @@ Python based Telegram bot to monitor and control the raspberry pi.
- ledoff1 - Switch off LED 1
- ledon2 - Switch on LED 2
- ledoff2 - Switch off LED 2
- cpu - Get CPU info
- usb - See connected USB devices
- cpu - Get CPU info (lscpu)
- usb - See connected USB devices (lsusb)
- hi - To check if online
- time - Returns time
- date - Returns date
- temp - CPU Temperature
- repoupdate - update repositories
- upgrade - upgrade packages
- shutdown - Shutdown RPi
- reboot - Reboot RPi
- repoupdate - update repositories (sudo apt-get update)
- upgrade - upgrade packages (sudo apt-get upgrade -y)
- shutdown - Shutdown RPi (sudo shutdown -h now)
- reboot - Reboot RPi (sudo reboot)
## Usage :
Type the command followed by a / .
For example : To check the CPU Temperature;
- Use ' / ' before each command
- Example : To check the CPU Temperature;
```
/temp
```