A simple script to send alerts/reminders for caldav events.
Go to file
mrsu f6b1b2d5ee Refactor remindme_caldav.py for improved code maintainability and readability
* Refactored `remindme_caldav.py` to separate concerns into different functions:
  - `calendar_parser()`: Parses the calendar and generates event dictionaries.
  - `generate_recurring_event_dates()`: Generates recurring event dates based on a start date and an RRULE.
  - `get_next_alert()`: Calculates the next alert time for each event.
  - `process_alert()`: Processes alerts for each event.
* Implemented error handling in `calendar_parser()` to catch missing components without crashing the program.
* Added comments and docstrings for better code readability and maintainability.
* Modified `get_next_alert()` to handle events with no recurring dates.
* Updated `process_alert()` to subtract 15 seconds from the next alert time to ensure alerts are triggered before the event occurs.
* Added a human-readable format for the time until the next alert in the status message.
2024-02-10 19:37:37 +00:00
.gitignore track .gitignore 2024-02-08 15:41:09 +00:00
LICENSE Initial commit 2024-02-04 03:01:11 +00:00
README.md Initial commit 2024-02-04 03:01:11 +00:00
config.toml alerting and filehandling 2024-02-06 19:02:44 +00:00
email_alert.py Replace toml with humanfriendly library for email alert and update send\_email function with event details 2024-02-09 12:08:31 +00:00
remindme_caldav.py Refactor remindme_caldav.py for improved code maintainability and readability 2024-02-10 19:37:37 +00:00
requirements.txt requirements.txt 2024-02-04 13:47:09 +00:00
xmpp_alert.py Replace toml with humanfriendly library for email alert and update send\_email function with event details 2024-02-09 12:08:31 +00:00

README.md

remindme_caldav

A simple script to send alerts/reminders for caldav events.