This is a Telegram bot that lets users control WS281x LEDs connected to a Raspberry Pi. The bot offers a custom keyboard to control the color, brightness and saturation.
- Raspberry Pi
- WS281x LEDs
python3
with the following modules:aiogram
rpi_ws281x
- Telegram bot API key (https://core.telegram.org/bots/tutorial)
The following environment variables need to be set:
TELEGRAM_BOT_TOKEN
For testing, simply run main.py
For productive use, install the telegram-bot-rpi-ws281x.service
systemd unit file.