Reads your calendar events into the local cache, one of two ways. Neither can write: both connectors only make GET requests (scripts/check_boundaries.sh fails CI on anything else).
| Private iCal link (default) | Google's Calendar API (advanced) | |
|---|---|---|
| Setup | paste a link, ~2 minutes | a Google Cloud project, ~15 minutes once |
| Works with | Google, iCloud, Outlook, Fastmail, any .ics link | Google only |
| Freshness | Google refreshes these links slowly: changes can take hours | within a sync |
| Attendees | names, but not which one is you | names, without you |
| Which calendars | one link each | every calendar selected in Google Calendar |
If an iCal link is stored, it's used; otherwise the API. Both make the same documents, so the panels, the brief and answers don't change. Switching from the API to iCal replaces the cached events on the next sync.
webcal:// link. Outlook: Settings → Calendar → Shared calendars → Publish a calendar → the ICS link.kettlewise calendar ical in your own terminal (the prompt hides what you paste). Several calendars: paste each link, separated by spaces. Kettlewise reads every link once to check it, then keeps them in the Keychain.The link is the credential: anyone holding it can read that calendar. It never appears in an error, a log or a document id (events are named by a hash of it). To make a link useless, press Reset beside it in Google Calendar's settings, then store the new one.
Each sync reads every link whole and expands repeating events in code (recurring-ical-events: repeat rules, skipped and moved occurrences), from KETTLEWISE_CALENDAR_HISTORY_DAYS back to 90 days ahead. An event gone from the feed leaves the cache. One link failing fails the whole sync, so a calendar is never half-dropped.
Already on the API? kettlewise calendar compare reads the next 14 days both ways (asking for the link if it isn't stored, and storing nothing) and lists events only one route has, and ones whose end, place, all-day or busy flag differ. Expect a lag for changes made in the last few hours; anything else is worth a look.
You create a small Google Cloud project that only you use. The same project is reused for Gmail later, so this is the only time you do it.
kettlewise, create, and make sure it's selected.Consent screen. APIs & Services → OAuth consent screen (may be labeled Google Auth Platform). Get started:
Kettlewise, your email as support and developer contact.calendar.readonly, tick .../auth/calendar.readonly (See and download any calendar you can access). Only that one. Save.Client. Clients (or Credentials → Create credentials → OAuth client ID):
kettlewise-cli.Run:
kettlewise calendar auth ~/Downloads/client_secret_….json
Kettlewise stores the client in the macOS Keychain, then opens your browser. Google shows "Google hasn't verified this app": click Advanced → Go to Kettlewise (unsafe). That warning is expected for a personal, unverified app. Approve read-only calendar access; the browser says you can close it.
rm ~/Downloads/client_secret_*.jsonThen kettlewise sync calendar.
| What | Where |
|---|---|
| iCal links | Keychain: kettlewise / calendar-ical |
| OAuth client (id + secret from the JSON) | Keychain: kettlewise / google-client |
| Refresh token (calendar.readonly only) | Keychain: kettlewise / calendar-refresh-token |
| Events | ~/kettlewise/data/kettlewise.db |
Every calendar you've selected in Google Calendar (or KETTLEWISE_CALENDAR_IDS), events from KETTLEWISE_CALENDAR_HISTORY_DAYS ago (default 365) on the first sync, then each sync re-reads a window from 7 days back to 90 days ahead, so moved and cancelled events are picked up. Recurring events are expanded into their individual occurrences by Google.
kettlewise calendar forget (or disconnect on the Modules screen) removes the iCal links and the Google sign-in from the Keychain. Then, on the services' side: Reset the iCal link in Google Calendar's settings, and remove Kettlewise at https://myaccount.google.com/permissions.