This project was originally created for fun months ago when the BambuLab A1 was OUT-OF-STOCK. It ensures you catch the availability when it comes back. I've also used it to get notified when certain PLA types come back in stock. This project is tailored for the European Marketplace but can be easily adapted for the US.
This is the first release, but if the project is adopted by the BambuLab community members, I will update and optimize it in the future.
For any questions, feel free to open an issue.
To configure the monitor, follow these steps:
Ensure you have Python 3.12 installed on your system.
First, install the packages listed in the requirements.txt
file:
python3.12 -m pip install -r requirements.txt
python3.12 -m pip install https://github.com/KurimuzonAkuma/pyrogram/archive/dev.zip --force-reinstall
Open main.py with your preferred text editor and configure the following parameters:
1. Timeout Between Checks
-
Description: Set the interval (in seconds) between each check.
-
Default: 300 seconds (5 minutes)
-
Note: You can adjust this value as needed.
timeout_to_wait = 300 # Adjust this value as needed
2. Variants to Check
-
Description: Provide a list of product variant IDs that you want to monitor. You can find these IDs on the product's website.
-
Format: List of integers or strings representing the product variant IDs.
variants_to_check = [ # Example IDs 1234567890, 9876543210, # Add more IDs as needed ]
3. Pyrogram Client Configuration
Fill in the details for the Pyrogram client with the following:
-
name
: The session name for the Pyrogram session file (e.g.,"bambulabbot"
). -
api_id
: Your Telegram API ID. -
api_hash
: Your Telegram API hash. -
bot_token
: The token for your Telegram bot.from pyrogram import Client pyro_client = Client( session_name="bambulabbot", # Replace with your session name api_id=123456, # Replace with your API ID api_hash="your_api_hash", # Replace with your API hash bot_token="your_bot_token" # Replace with your bot token )
- Create a new application on the Telegram API development tools to get your API ID and API hash.
- Create a new bot using BotFather on Telegram to get your bot token.
Contributions are welcome! Fork the repository and submit a pull request.
Feel free to open an issue here on GitHub to keep in touch.