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 ') 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: ## Commands:
@ -21,20 +23,20 @@ Python based Telegram bot to monitor and control the raspberry pi.
- ledoff1 - Switch off LED 1 - ledoff1 - Switch off LED 1
- ledon2 - Switch on LED 2 - ledon2 - Switch on LED 2
- ledoff2 - Switch off LED 2 - ledoff2 - Switch off LED 2
- cpu - Get CPU info - cpu - Get CPU info (lscpu)
- usb - See connected USB devices - usb - See connected USB devices (lsusb)
- hi - To check if online - hi - To check if online
- time - Returns time - time - Returns time
- date - Returns date - date - Returns date
- temp - CPU Temperature - temp - CPU Temperature
- repoupdate - update repositories - repoupdate - update repositories (sudo apt-get update)
- upgrade - upgrade packages - upgrade - upgrade packages (sudo apt-get upgrade -y)
- shutdown - Shutdown RPi - shutdown - Shutdown RPi (sudo shutdown -h now)
- reboot - Reboot RPi - reboot - Reboot RPi (sudo reboot)
## Usage : ## Usage :
Type the command followed by a / . - Use ' / ' before each command
For example : To check the CPU Temperature; - Example : To check the CPU Temperature;
``` ```
/temp /temp
``` ```