@versedhand/calendar-sync
v1.0.2
Published
Google Calendar to LifeDB appointment sync. Run hourly via cron.
Maintainers
Readme
Calendar Sync
Syncs Google Calendar events to LifeDB appointments table. Runs hourly via cron on server.
Usage
# Manual run (from server)
ssh [email protected]
cd /home/rrobinson/projects/calendar-sync
source venv/bin/activate # if exists, else: python3 sync.py
python3 sync.pyFiles
| File | Purpose |
|------|---------|
| sync.py | Main sync script — pulls events, upserts to appointments |
| auth.py | OAuth2 auth flow helpers |
| gcp-oauth.keys.json | GCP OAuth client credentials |
| token.json | Stored OAuth token (refresh token, auto-refreshed) |
Auth
Uses OAuth2. If token expires:
python3 auth.py # Re-runs OAuth flow, saves new token.jsonSchema
Writes to appointments table. Agents can query:
SELECT title, start_time, end_time FROM appointments
WHERE start_time::date = CURRENT_DATE;See /life/infra/calendar-integration.md for full architecture.
