From 7c9737e092717fc7c6a3ed09a3f59f82a8e4ced6 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 21 Aug 2025 16:03:40 -0500 Subject: [PATCH] kitchen: Update DTEX calendar URL I wrote a Thunderbird add-on for my work computer that periodically exports my entire DTEX calendar to a file. Unfortunately, the file it creates is not directly usable by the kitchen screen server currently; it seems to use a time zone identifier that `tzinfo` doesn't understand: ``` Error in background update: Traceback (most recent call last): File "/usr/local/kitchen/lib64/python3.12/site-packages/kitchen/service/agenda.py", line 19, in _background_update await self._update() File "/usr/local/kitchen/lib64/python3.12/site-packages/kitchen/service/agenda.py", line 34, in _update calendar = await self.fetch_calendar( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/kitchen/lib64/python3.12/site-packages/kitchen/service/caldav.py", line 39, in fetch_calendar return icalendar.Calendar.from_ical(r.text) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/kitchen/lib64/python3.12/site-packages/icalendar/cal.py", line 369, in from_ical _timezone_cache[component['TZID']] = component.to_tz() ^^^^^^^^^^^^^^^^^ File "/usr/local/kitchen/lib64/python3.12/site-packages/icalendar/cal.py", line 659, in to_tz return cls() ^^^^^ File "/usr/local/kitchen/lib64/python3.12/site-packages/pytz/tzinfo.py", line 190, in __init__ self._transition_info[0]) ~~~~~~~~~~~~~~~~~~~~~^^^ IndexError: list index out of range ``` It seems to work fine in Nextcloud, though, so the work-around is to import it as a subscription in Nextcloud and then read it from there, using Nextcloud as a sort of proxy. --- kitchen/secrets.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kitchen/secrets.yaml b/kitchen/secrets.yaml index f106927..0b68f51 100644 --- a/kitchen/secrets.yaml +++ b/kitchen/secrets.yaml @@ -48,8 +48,9 @@ spec: calendar_url: >- https://nextcloud.pyrocufflink.net/remote.php/dav/calendars/B53DE34E-D21F-46AA-B0F4-1EC0933AE220/projects_shared_by_332E433E-43B2-4E3D-A0A0-EB264C624707/ dtex: &dtex + <<: *credentials calendar_url: >- - https://outlook.office365.com/owa/calendar/0f775a4f7bba4abe91d2684668b0b04f@dtexsystems.com/5f42742af8ae4f8daaa810e1efca6e9e8531195936760897056/S-1-8-960331003-2552388381-4206165038-1812416686/reachcalendar.ics + https://nextcloud.pyrocufflink.net/remote.php/dav/calendars/B53DE34E-D21F-46AA-B0F4-1EC0933AE220/pyrocufflinknet-1/?export agenda: calendars: