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
File details
Details for the file DeviceControllerTelegramBot-1.0.0.tar.gz
.
File metadata
- Download URL: DeviceControllerTelegramBot-1.0.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c789f89211a38618104371bc694f52c25168687e8202560fa78ad1dfe0e8150c |
|
MD5 | 7903e3e23f97347d62e19015804c296e |
|
BLAKE2b-256 | 904af59c81040dd074fec981c36e66d9a8117d606b21d5a0bed0c2df9169d60c |
File details
Details for the file DeviceControllerTelegramBot-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: DeviceControllerTelegramBot-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18f2d304553d653e1658b8c284d4121d852e26efe6ed1605c29d559145d0f7f9 |
|
MD5 | efc8e17e799555cf51efef7b23beae9e |
|
BLAKE2b-256 | 56ca7c8eb1b839f2562915bb2e791c0a8aa230c1661e8fa01fe246799ddce517 |