Convert irma calendar https://irma.suunnistusliitto.fi/public/competitioncalendar/list to caldav format Usage instructions
bash irma_fetch.sh
this creates
- cache dir to limit hammering irma service. cache expiry can be defined in the code
- cookies.txt cookie file to communicate with service
- irma_events.ics ics file that contains events
- irma_ilmodedis.ics file that contains dates for registration entry step #1
Known bugs/features
- Output doesn't fully follow the standard. (It works good enough with OSX Sonoma ical.app anyhow)
- Do not hammer the IRMA server. once in a week update might be more than enough for calendar updates ( Cache functionality tries to avoid the problem in the code anyways)
- This tool doesn't check bike or other special orienteering modes, maybe in future?
- IRMA has a region limits but this is intended for my personal use and I like to know all events ( you never know if you happen to visit in other region)
- I'm not a coder. I can hack some things together ( and I have friends that can help) and this is intended to be more like inspirational code for someone that can create more robust setup