A webservice that allows users to alias course names from Moodle calendar exports.
Create a moodle calendar export link for all events in recent and next 60 days. Export Calendar in Aalto University MyCourses.
Set up your calendar filter setups by
$ curl -X POST https://calendar.lim.fi -d '{
"url": "https://moodle.example.com/calendar/export_execute.php?userid=USER_ID_INT&authtoken=AUTH_TOKEN_HEX&preset_what=all&preset_time=recentupcoming",
"renames": {
"Course Name 1 D": "CN",
"Introduction to Programming": "IntroP",
"Learning Rust 101": "Rust"
}
}'
{"filtered_url": "https://calendar.lim.fi/AUTH_TOKEN_HEX"}Now you can get your filtered calendar subscription at https://calendar.lim.fi/AUTH_TOKEN_HEX (with your own authtoken there).
The service is written in Rust utilizing workers-rs and is deployed to Cloudflare Workers.
Running locally
$ wrangler2 dev --localThis exposes the endpoints to 127.0.0.1:8787
Deploying
$ wrangler2 publish