What's New?
-
Improved Error Handling:
- Exception handling enhanced to send WhatsApp notifications on failure at every step.
- Includes detailed error messages and stack traces for better debugging.
-
Retry Mechanism:
- Introduced automatic retry for failed executions, ensuring the process completes successfully.
-
Code Modularization:
- Modularized the codebase for improved readability and maintainability.
- WhatsApp messaging service initialization moved to the constructor to avoid redundancy.
-
Dynamic Browser Compatibility:
- Fixed compatibility issues with Chrome and Chromium browsers on different environments (e.g., Ubuntu with Snap).
-
Secure File Management:
- Decrypted files are now safely handled and removed after execution.
-
User Notifications:
- Enhanced WhatsApp messages for successful and failed bookings, providing clear feedback to users.
Installation & Setup
-
Clone the repository:
git clone https://github.com/your-username/MealBuddy.git cd MealBuddy -
Create and activate a Python virtual environment:
python3 -m venv bookingenv source bookingenv/bin/activate -
Install dependencies:
pip install -r requirements.txt
-
Configure the
.envfile with your environment variables:CHROMEDRIVER_PATHWHATSAPP_APP_KEYENCRYPTION_KEY- And more…
-
Schedule the script to run automatically via Cron (e.g., every evening).
Bug Fixes
- Resolved "DevToolsActivePort file doesn't exist" error for Chromium on Ubuntu.
- Fixed issues with small screen sizes affecting sidebar interaction.
Future Plans
- Add support for multiple meal types and meal booking time customization.
- Provide a web interface for easier management of users and configurations.
Repository: DormMealBot
Instructions: If you like the tool or find it useful, give it a ⭐ on GitHub!