Update README.md
This commit is contained in:
parent
22673877ac
commit
0395255307
18
README.md
18
README.md
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue