f6b1b2d5ee
* 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. |
||
---|---|---|
.gitignore | ||
LICENSE | ||
README.md | ||
config.toml | ||
email_alert.py | ||
remindme_caldav.py | ||
requirements.txt | ||
xmpp_alert.py |
README.md
remindme_caldav
A simple script to send alerts/reminders for caldav events.