Google Calendar
The google-calendar Module shows a Google account’s calendars on the Calendar Surface beside the local ones. Kanade signs in with your own OAuth client, so you make one once.
- In Google Cloud, create a project and enable the Google Calendar API in it.
- Under Google Auth Platform, set up the consent screen as External and add yourself as a test user.
- Create an OAuth client of type Desktop app and download its JSON file.
- Run the sign-in with that file and allow read access in the browser that opens.
kanade google-calendar sign-in ~/Downloads/client_secret_....jsonkanade google-calendar synckanade google-calendar statuskanade google-calendar sign-out| Verb | What it does |
|---|---|
sign-in <client.json> |
Signs in through the browser with a Desktop app OAuth client’s JSON file |
sign-out |
Revokes access, and deletes the credentials and the synced events |
sync |
Syncs now |
status |
Says how the account stands |
The client and the refresh token go to the Secret Service, never to the config or a log, so the downloaded file can be deleted afterwards. Kanade syncs at start, every 15 minutes and on kanade google-calendar sync, into ~/.cache/kanade/google-calendar/, readable only by you.
The Module requires calendar, and it is idle until signed in.
See also
Section titled “See also”The Calendar Surface, calendar configuration, and the CLI reference.
