Releases: Phoenix-H22/DormMealBot
Release list
Enhanced Automation with Improved Error Handling and Modularization
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!
🚀 DormMealBot v1.0.0 - Automate Your Dorm Meal Bookings
Release Title: 🚀 DormMealBot v1.0.0 - Automate Your Dorm Meal Bookings
Tag Version: v1.0.0
Release Description:
The first official release of DormMealBot is here! This tool automates the mundane process of booking dorm meals, saving time and ensuring you never miss a meal booking again.
What's New in v1.0.0:
- Automated Meal Booking: Logs into the dorm meal booking website and books meals automatically for the next day.
- Multi-User Support: Handles meal bookings for multiple users securely.
- Secure Data Handling: Uses AES encryption for storing sensitive user data.
- Notification System: Sends WhatsApp alerts on success or failure using a configurable API.
- Scalable and Modular Design: The codebase is well-structured, making it easy to add new features.
- Customizable Scheduling: Set up cron jobs to run the script daily at a specified time.
- Cross-Platform Compatibility: Tested on Ubuntu and Windows environments.
Installation Instructions:
- Clone the repository:
git clone https://github.com/Phoenix-H22/DormMealBot.git cd DormMealBot - Create a Python virtual environment and install dependencies:
python3 -m venv bookingenv source bookingenv/bin/activate pip install -r requirements.txt - Set up your
.envfile with the necessary credentials (refer to the README). - Encrypt your users' data using the encryption tool included.
- Configure a cron job to schedule the script.
Known Issues:
- Some websites may have specific rendering issues on smaller screen sizes.
- Ensure the Chromium browser and Chromedriver versions match for smooth functionality.
Future Plans:
- Add support for other dorm booking systems.
- Enhance logging with more granular details.
- Add a dashboard for managing users and settings via a web interface.
How to Contribute:
- Fork the repository and submit a pull request.
- Report bugs or suggest enhancements via the issues section.
Download and Explore:
🎉 DormMealBot v1.0.0 Release
If you like this project, don’t forget to ⭐ it on GitHub. Your support inspires continuous improvement! 🚀