A Telegram Bot to control Board Pins for Device Controller Arduino Library
Project description
Device Controller Telegram Bot
A Telegram Bot to control Board Pins for Device Controller Arduino Library
Usage
- Install Device Controller Arduino Library in Arduino IDE.
- Use Arduino Uno Controller Example Sketch to test the bot.
- Upload Sketch on the board
- Create new Telegram Bot using BotFather
- Copy API KEY to clipboard
- Install DeviceControllerTelegramBot Using pip
pip3 install DeviceControllerTelegramBot
- Use ArduinoUnoController.py from examples to create a Telegram bot
- Assign copied Key to api_key variable
- Update Serial Communication configuration
serial_comms_conf = { 'PORT': "COM[PORT_NUMBER]", 'baud_rate': 9600, 'timeout': 0.0, 'encoding': 'utf-8' }
Update PORT in dictionary
- Start Bot using
python3 ArduinoUnoController.py
- Start chat with bot on telegram, it will reply with your telegram chat id, copy chat id and update admin_chat_ids_list
admin_chat_ids_list = [ your_chat_id, another_chat_ids_if_any, ]
- Restart Bot
- Use
/devices
command to control connected devices
TODO
- Add demonstration image/video
- Add options to control Analog pins
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for DeviceControllerTelegramBot-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c789f89211a38618104371bc694f52c25168687e8202560fa78ad1dfe0e8150c |
|
MD5 | 7903e3e23f97347d62e19015804c296e |
|
BLAKE2b-256 | 904af59c81040dd074fec981c36e66d9a8117d606b21d5a0bed0c2df9169d60c |
Close
Hashes for DeviceControllerTelegramBot-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18f2d304553d653e1658b8c284d4121d852e26efe6ed1605c29d559145d0f7f9 |
|
MD5 | efc8e17e799555cf51efef7b23beae9e |
|
BLAKE2b-256 | 56ca7c8eb1b839f2562915bb2e791c0a8aa230c1661e8fa01fe246799ddce517 |