Skip to content

Releases: Phoenix-H22/DormMealBot

Enhanced Automation with Improved Error Handling and Modularization

Choose a tag to compare

@Phoenix-H22 Phoenix-H22 released this 10 Jan 19:30

What's New?

  1. 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.
  2. Retry Mechanism:

    • Introduced automatic retry for failed executions, ensuring the process completes successfully.
  3. Code Modularization:

    • Modularized the codebase for improved readability and maintainability.
    • WhatsApp messaging service initialization moved to the constructor to avoid redundancy.
  4. Dynamic Browser Compatibility:

    • Fixed compatibility issues with Chrome and Chromium browsers on different environments (e.g., Ubuntu with Snap).
  5. Secure File Management:

    • Decrypted files are now safely handled and removed after execution.
  6. User Notifications:

    • Enhanced WhatsApp messages for successful and failed bookings, providing clear feedback to users.

Installation & Setup

  1. Clone the repository:

    git clone https://github.com/your-username/MealBuddy.git
    cd MealBuddy
  2. Create and activate a Python virtual environment:

    python3 -m venv bookingenv
    source bookingenv/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Configure the .env file with your environment variables:

    • CHROMEDRIVER_PATH
    • WHATSAPP_APP_KEY
    • ENCRYPTION_KEY
    • And more…
  5. 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

Choose a tag to compare

@Phoenix-H22 Phoenix-H22 released this 07 Jan 18:43

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:

  1. Clone the repository:
    git clone https://github.com/Phoenix-H22/DormMealBot.git
    cd DormMealBot
  2. Create a Python virtual environment and install dependencies:
    python3 -m venv bookingenv
    source bookingenv/bin/activate
    pip install -r requirements.txt
  3. Set up your .env file with the necessary credentials (refer to the README).
  4. Encrypt your users' data using the encryption tool included.
  5. 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! 🚀