Remove duplicates from your TUM calendar
Problem: Events that are held simultaneously in multiple lecture halls appear multiple times in your calendar
Solution: Replace all duplicates with a single event listing all locations
- Create an AWS Lambda function named
tum-calendar-sanitize
- Run
make deploy-lambda
- Setup API Gateway to give your lambda function an HTTP endpoint
- Fetch your calendar's url from TUMonline (via the publish button)
- Replace everything before the query parameters (
pStud
andpToken
) with your function's HTTP endpoint - Subscribe to that url in your calendar app of choice
Note:
- Depending on your setup you might need to adjust the lambda function's name and AWS region in the Makefile
- You'll also need to update the route name in
main.js
(the one used in theapp.get
call) to match your API Gateway resource name
Before / After
MIT @ Lukas Kollmer