Automatically syncs travel timezones from your TripIt trips to Reclaim.ai, so your scheduling links, habits, and working hours all adjust to wherever you're traveling.
Parses your TripIt iCal feed to extract timezones from flights and hotel stays, builds timezone segments for each trip, and pushes them to Reclaim's travel timezone settings via REST API. Optionally notifies via Telegram when changes are detected.
- Fetches your TripIt iCal calendar feed
- Identifies trip-level events (date ranges), flights, and hotel/lodging stays
- Builds timezone segments using a priority chain: flights → hotel stays → trip-level geo-coordinates
- For hotels, disambiguates timezone abbreviations (CST, IST, EST) using the location's country
- Filters to future segments, deduplicates consecutive same-timezone periods
- Skips sync if nothing changed; otherwise clears existing Reclaim entries and creates new ones
- Sends a Telegram notification when timezone overrides change (if configured)
- Go to tripit.com and log in
- Navigate to Settings (gear icon) → Calendar Feed
- Enable the iCal feed if not already enabled
- Copy the private feed URL — it looks like:
https://www.tripit.com/feed/ical/private/XXXXXXXX-XXXXXXXXXXXXXXXXXXXX/tripit.ics
- Go to app.reclaim.ai/settings/developer
- Generate a new API key
- Copy the token
npm install
# Dry run — shows what would be synced without making changes
TRIPIT_ICAL_URL="..." RECLAIM_API_TOKEN="..." node sync.mjs dry-run
# Full sync
TRIPIT_ICAL_URL="..." RECLAIM_API_TOKEN="..." node sync.mjs sync
# JSON output (for scripts, agents, or automation)
TRIPIT_ICAL_URL="..." RECLAIM_API_TOKEN="..." node sync.mjs sync --output=jsonThe --output=json flag works with both dry-run and sync modes. When set, the script outputs a single JSON object to stdout instead of human-readable text:
{
"mode": "sync",
"noChanges": false,
"timezoneChanges": [
{ "action": "create", "timezone": "America/Chicago", "from": "2026-04-01", "to": "2026-04-05" }
],
"segments": [
{ "timezone": "America/Chicago", "from": "2026-04-01", "to": "2026-04-05", "label": "KubeCon - Austin" }
],
"ooo": { "created": 2, "deleted": 1, "setToP2": 1 },
"conflicts": [
{ "trip1": "KubeCon", "trip2": "DevOps Days", "overlap": "2026-04-03" }
],
"errors": []
}Human-readable output remains the default.
Build the image:
docker build -t tripit-reclaim-sync .Run the container:
docker run -d \
--name tripit-reclaim-sync \
--restart unless-stopped \
-e TRIPIT_ICAL_URL="https://www.tripit.com/feed/ical/private/YOUR-FEED-ID/tripit.ics" \
-e RECLAIM_API_TOKEN="your-reclaim-api-token" \
tripit-reclaim-syncThe container syncs immediately on startup, then daily at 3:00 AM.
If you're using a NAS or other Docker UI (Portainer, Synology, UGREEN, etc.), the environment variables will appear pre-populated in the container creation form — just fill in the values.
For a NAS or remote host with a different architecture, build for the target platform:
# For x86_64 NAS (Intel/AMD)
docker buildx build --platform linux/amd64 -t tripit-reclaim-sync .
# Export as tar.gz to transfer to the NAS
docker save tripit-reclaim-sync | gzip > tripit-reclaim-sync.tar.gzOn the NAS, load and run:
docker load < tripit-reclaim-sync.tar.gzFor a serverless deployment that runs as a scheduled ECS Fargate task (~$0.01/month), see AWS_DEPLOYMENT.md.
Install the Tessl tile to let any AI agent run the sync on your behalf:
tessl install jbaruch/reclaim-tripit-syncThe tile provides two skills:
sync-tripit— runs the sync with--output=json, interprets the result, and reports changes (or stays silent if nothing changed)onboard-tripit-reclaim— guided credential setup with dry-run validation
The agent downloads and installs the sync tool on first use — no pre-configuration needed beyond setting your environment variables. Telegram and SNS notification variables are not needed when running as a tile; the agent handles reporting.
Automatically creates Google Calendar Out-of-Office events for every future TripIt trip and sets their Reclaim priority to P2 (high) instead of the default P1 (critical).
Reclaim scheduling links respect priority levels. Google Calendar's built-in OOO events sync to Reclaim as P1 (critical), which means ALL your scheduling links treat those days as unavailable. That's usually fine — except when it isn't.
By creating our own OOO events at P2 priority, you get a useful split:
- Regular scheduling links (default priority) — still see the OOO blocks, still respect your travel days
- A special "critical-only" scheduling link — sees P2 blocks as available time, lets people book through travel days
Use case: you're traveling but technically reachable. You want a booking link that says "I'm on a plane but sure, let's talk" for important meetings, while your regular links still show you as out of office.
- In Reclaim → Scheduling Links → create or edit a link
- Set Availability or Minimum priority to Critical
- This link will ignore P2 (high) OOO blocks and show those days as bookable
- Regular links at default priority still respect the OOO blocks
- Go to Google Cloud Console → create a project (or use an existing one)
- Enable the Google Calendar API (APIs & Services → Library → search "Google Calendar API" → Enable)
- Create OAuth 2.0 credentials:
- APIs & Services → Credentials → Create Credentials → OAuth client ID
- Application type: Desktop app
- Note the Client ID and Client Secret
- Configure the OAuth consent screen (APIs & Services → OAuth consent screen) — "External" is fine for personal use, just add yourself as a test user
- Get a refresh token — run this one-time auth flow:
# Open this URL in your browser (replace YOUR_CLIENT_ID): # https://accounts.google.com/o/oauth2/v2/auth?client_id=YOUR_CLIENT_ID&redirect_uri=http://localhost&response_type=code&scope=https://www.googleapis.com/auth/calendar&access_type=offline&prompt=consent # After authorizing, you'll be redirected to localhost with a ?code= parameter # Exchange that code for tokens: curl -s -X POST https://oauth2.googleapis.com/token \ -d "code=AUTH_CODE_FROM_REDIRECT" \ -d "client_id=YOUR_CLIENT_ID" \ -d "client_secret=YOUR_CLIENT_SECRET" \ -d "redirect_uri=http://localhost" \ -d "grant_type=authorization_code" | jq .refresh_token
- Set the three environment variables:
GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRET,GOOGLE_REFRESH_TOKEN
The feature auto-activates when all three are present. If any are missing, OOO sync is silently skipped.
On each sync run (after timezone sync):
- Gets future trips from TripIt
- Lists existing
[TripIt OOO]events in Google Calendar - Creates missing OOO events, deletes stale ones (trip removed or dates changed)
- Searches Reclaim for the synced OOO events and sets their priority to P2
- If Reclaim hasn't synced the new Google Calendar events yet, the next run catches them
The events show up in Google Calendar as proper OOO events with autoDeclineMode: declineNone — they mark your calendar as out-of-office without auto-declining meeting invites.
Some trips in TripIt don't need timezone sync or OOO blocks — family members traveling without you, trips you're tracking for logistics but not attending. Two env vars let you skip them:
TRIPIT_IGNORE_TRIPS— comma-separated trip names (case-insensitive substring match)TRIPIT_IGNORE_KEYWORDS— comma-separated keywords that match against any trip name
# Skip a specific trip
TRIPIT_IGNORE_TRIPS="Family trip to Paris"
# Skip any trip with a family member's name in it
TRIPIT_IGNORE_KEYWORDS=alice,daniel,nicoleIgnored trips are excluded from both timezone segments and OOO calendar blocks. Their flights and lodging data won't leak into other trips' segments.
Get notified when timezone overrides change. To set up:
- Create a bot via @BotFather and copy the bot token
- Send any message to your bot, then get your chat ID from
https://api.telegram.org/bot<TOKEN>/getUpdates - Set
TELEGRAM_BOT_TOKENandTELEGRAM_CHAT_IDenvironment variables
When configured, you'll receive a message listing the new timezone overrides whenever the sync detects changes. If the variables are not set, notifications are silently skipped.
| Variable | Required | Description |
|---|---|---|
TRIPIT_ICAL_URL |
Yes | Your private TripIt iCal feed URL |
RECLAIM_API_TOKEN |
Yes | Reclaim.ai API token |
TELEGRAM_BOT_TOKEN |
No | Telegram bot token for change notifications |
TELEGRAM_CHAT_ID |
No | Telegram chat ID to send notifications to |
GOOGLE_CLIENT_ID |
No | Google OAuth2 client ID (enables OOO blocks) |
GOOGLE_CLIENT_SECRET |
No | Google OAuth2 client secret |
GOOGLE_REFRESH_TOKEN |
No | Google OAuth2 refresh token |
TRIPIT_IGNORE_TRIPS |
No | Comma-separated trip names to ignore (case-insensitive substring match) |
TRIPIT_IGNORE_KEYWORDS |
No | Comma-separated keywords — any trip whose name contains one matches |