devhack-seattle / devhack.net

Front-page website
0 stars 2 forks source link

Add a text-based calendar that parses .ics from our NextCloud calendar #6

Closed leafcompost closed 1 week ago

leafcompost commented 1 week ago

This uses ical.js to load a calendar from our NextCloud .ics export and turn it into text. As future work, the JavaScript could use some cleanup (in part by reusing third party libraries to do ical rrule->English language conversion), but this seems to work pretty well for the current events on the agenda.

text-based calendar using html ul element

Thanks to @thefinn93 for helping with reverse proxying the ics file.

Fixes #4.

mjsir911 commented 1 week ago

btw the caldav export doesn't need to be proxied, can be accessed from the internet here: https://nextcloud.devhack.net/remote.php/dav/public-calendars/ecGookjEW4NtHNBi?export

mjsir911 commented 1 week ago

Ah might spin this off to it's own ticket but we might want to specify ending times as well.

leafcompost commented 1 week ago

btw the caldav export doesn't need to be proxied, can be accessed from the internet here: https://nextcloud.devhack.net/remote.php/dav/public-calendars/ecGookjEW4NtHNBi?export

Yea this is what we are using under the hood! It is just reverse proxied so we prevent any HTTP cross-origin issues without messing with NextCloud’s headers.

Ah might spin this off to it's own ticket but we might want to specify ending times as well.

Will do in a follow up.