Skip to content

sync multiple calendars into one with some filter/transforms

License

Notifications You must be signed in to change notification settings

rooterkyberian/polycal

Repository files navigation

polycal

Google calendar aggregation tool.

Synchronize events from multiple calendars into one.

One-way synchronization only! don't expect edits of target calendar to be synchronized back - in fact they will get overwritten during next sync.

Example config

./.polycal/polycal

sources:
  - id: [email protected]
    transforms:
      - type: SkipByTitle
        kwargs:
          titles:
            - "Not important"
  - id: [email protected]
    transforms:
      - type: ReplaceTitle
        kwargs:
          repl: "work"
      - type: Merge
        kwargs:
          elipsis: "15m"
  - id: [email protected]
    transforms:
      - type: ReplaceTitle
        kwargs:
          pattern: "^(.*)$"
          repl: 'Other|\1'
      - type: SetAttr
        kwargs:
          busy: !!bool false

target:
  id: [email protected]

Configuring Google OAuth2

https://console.cloud.google.com/apis/dashboard?pli=1

  1. New project

  2. Enable APIs and services

Google Calendar API

  1. Create credentials

Which API are you using? Google Calendar API

What data will you be accessing? User data

Scopes: find the required scopes in src/polycal/services/gcal.py

  1. OAuth Client ID

App type: Desktop app

Download client secret json to ./polycal/client_secret.json

About

sync multiple calendars into one with some filter/transforms

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published