Skip to content

add calendar failed / ICS Calendar #82

@Andrevg09

Description

@Andrevg09

When i want to add a calendar over ICS (this line in .env file):

Or if you use ICS Calendar,

export ICS_CALENDAR_URL=https....

i got following error messages:

ADD CALENDAR INFO

2024-04-08:12:12:43 INFO [screen-calendar-get.py:93] Fetching ics Calendar Events
Traceback (most recent call last):
File "/home/andre/waveshare-epaper-display/screen-calendar-get.py", line 109, in
main()
File "/home/andre/waveshare-epaper-display/screen-calendar-get.py", line 99, in main
calendar_events = provider.get_calendar_events()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/andre/waveshare-epaper-display/calendar_providers/ics.py", line 28, in get_calendar_events
ics_events = icalevents.icalevents.events(self.ics_calendar_url, start=self.from_date, end=self.to_date)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/andre/waveshare-epaper-display/.venv/lib/python3.11/site-packages/icalevents/icalevents.py", line 57, in events
found_events += parse_events(
^^^^^^^^^^^^^
File "/home/andre/waveshare-epaper-display/.venv/lib/python3.11/site-packages/icalevents/icalparser.py", line 370, in parse_events
rule = parse_rrule(component)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/andre/waveshare-epaper-display/.venv/lib/python3.11/site-packages/icalevents/icalparser.py", line 528, in parse_rrule
rule.exdate(exd.replace(tzinfo=None))
^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'tzinfo' is an invalid keyword argument for replace()

How can i fix this?

Regards, Andre

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions