RPi-TELEBOT/README.md

42 lines
1010 B
Markdown
Raw Normal View History

2020-06-28 11:45:44 +02:00
# RPi-TELEBOT
2020-06-28 11:55:27 +02:00
Python based Telegram bot to monitor and control the raspberry pi.
2020-06-28 13:18:48 +02:00
## Setting up the bot
2020-06-28 13:15:55 +02:00
- 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 ')
```
2020-06-28 11:55:27 +02:00
## Commands:
2020-06-28 13:15:55 +02:00
- help - List of commands
2020-06-28 11:55:27 +02:00
- ledon1 - Switch on LED 1
- ledoff1 - Switch off LED 1
- ledon2 - Switch on LED 2
- ledoff2 - Switch off LED 2
- cpu - Get CPU info
- usb - See connected USB devices
- 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
2020-06-28 12:01:45 +02:00
## Usage :
Type the command followed by a / .
For example : To check the CPU Temperature;
```
/temp
```
2020-06-28 13:18:48 +02:00
# Readme is still under construction.