- This project requires PlatformIO to build the source code and the required dependencies
- We recommend using the PlatformIO extension on Visual Studio Code
- This project uses a modified version of the Universal Telegram Bot Library (V1.3.0)
- It is automatically cloned into the project by PlatformIO
- The environment variables are stored in the header file
include/Config.h
- An example can be found at
include/Config.example.h
- Set
WIFI_CONNECTION_TYPE
to eitherWPA2_PERSONAL
orWPA2_ENTERPRISE
, depending on WiFi network, and the corresponding credentials. - Generate the Telegram bot token (
BOT_TOKEN
) from @BotFather - Set the Telegram group ID to be notified when the machine cycle is complete in
GROUP_ID_PROD
. The bot must also be added into the group. - For sensor input, only choose GPIO32 to GPIO39 (ADC1), and update
INPUT_DRYER_X
orINPUT_WASHER_X
- Check the status of the machines /status
- Subscribe to notifications when the machine cycle is complete using /claim - Select the machine from the inline keyboard
- Unsubscribe to notifications using /unclaim if the user accidentally claims the wrong machine
- If the machine finishes its cycle and the machine is not claimed by anyone, the bot will notify the group instead
Command | Description |
---|---|
claim |
Tag a dryer/washer to the user's telegram handle |
help |
Show the help message |
start |
Initialise bot |
status |
Get the status of the laundry room |
unclaim |
Untag a dryer/washer that you accidentally claimed |