A web service for exporting the SPH Notion Events into an ICS file that can be subscribed to from Outlook. The index page is useless as of now. There are three "views" of SPH Notion Events calendar available:
- http://localhost:8000/ics -- for internal staff
- http://localhost:8000/ics_welcomedesk -- for welcome desk
- http://localhost:8000/ics_reserved_slots -- for Event Request typeform to show reserved slots
- Get your Notion api token by creating a new integration
- Share your database with the integration via the share menu
- Get your database ID:
- Open your database in Notion
- Open the settings menu (elipses in the top right)
- Clip copy link
- Paste the link, the database ID will be the last path component (i.e.
THIS-RIGHT-HERE
inhttps://www.notion.so/username/THIS-RIGHT-HERE?v=some-long-string
)
- Enter this information into .env file
docker compose -f docker-compose-dev.yaml up
The actual conversion is in notion_calendar/notion_ics.py
. Uncomment the event_props
printing in that file to see what we're getting from the Notion API and convert it to ICS props accordingly.
git tag <version>
git push --tags
docker build -t studentprojecthouse/notion-calendar:<version> .
docker push studentprojecthouse/notion-calendar:<version>