Skip to content

Danappelxx/notion-calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notion Calendar Export

Slightly modified version of notion-export-ics.

Modifications include:

  • Using official Notion API
  • Dockerfile for serving iCal subscription
  • Migrate to poetry
  • Little extra functionality with tags

Quick usage

  • 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 in https://www.notion.so/username/THIS-RIGHT-HERE?v=some-long-string)
  • Enter this information into either the web app or CLI
    • The web app gives you a URL you can subscribe to on any calendar app (refresh >=15-min recommended)

CLI

$> echo '{"token": "secret_t3459384798", "db_id": "b4289r279f8dh", "title_format":"[{Tags[0]}] {Name}"}' > settings.json
$> poetry run python notion_calendar/make_ics.py settings.json > calendar.ics
$> open calendar.ics

Web app

$> poetry run python notion_calendar/webapp.py
... serving on 0.0.0.0:8080 ...

Dockerfile included, listening on port 8080.

Dokku

$> git push dokku main:master

About

iCal server publishing Notion calendar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published