Skip to content

This API logs in with selenium to fetch calendar files at Heroma and serves them as a calendar subsription.

Notifications You must be signed in to change notification settings

linusnyren/VgrICalSubscription

Repository files navigation

VgrICalSubscription

Short description

This api logs in to Heroma to get cookies and access tokens.
It then uses the cookies and tokens to retrieve an Ical calendar.
It then serves them as a prenumeration calendar in .ICS format.

It responds to GET calls /schema/user/password/months and returns an .ICS file which a user can subscribe to on their iPhone or Android device.

A hosted service is available at https://linusnyren.ddns.net:5000/schema/{user}/{password}/{months}

Usage

Subscribe to this url and fill in your username and password in the web address
The months parameter lets you specify how many months forward you want to fetch.
The Username is the username for Heroma, usually the first three letters in your surname and two last in your lastname. (Ann Eklund => annek)
Password is self explanatory i think...

How to subscribe to this on your device depends on your device, here is some quick links.
Iphone
Other devices

If you just wanna try this code out!!

Run and test this easily with docker compose
docker-compose up

Please note you'll need an login at Heroma självservice(selfservice).

Tech

This API is built using .Net and C#.
It uses Selenium to get cookies and tokens.
It uses an InMemoryCache to ease the amount of calls as a security measure (Not to piss Heroma of).

About

This API logs in with selenium to fetch calendar files at Heroma and serves them as a calendar subsription.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published