Jetlag Planner
by @chadholdorf
Scans your Google Calendar for upcoming flights and writes a personalized circadian adjustment plan back to your calendar. Trigger with phrases like "check m...
clawhub install openclaw-jetlagπ About This Skill
name: jetlag-planner description: Scans your Google Calendar for upcoming flights and writes a personalized circadian adjustment plan back to your calendar. Trigger with phrases like "check my flights", "run jetlag planner", "plan my trip adjustment", or "am I ready for my upcoming flight".
Run the jetlag planner by following these steps exactly.
Step 1 β Check for .env
Check whether the file ~/openclaw-jetlag/.env exists.
If it does not exist, stop immediately and reply:
> β οΈ No .env file found in ~/openclaw-jetlag/. You need to add your Google OAuth credentials before I can run the planner. Follow the setup instructions in the README β ask me "show me the jetlag setup instructions" if you need them.
Step 2 β Check for .oauth-token.json
Check whether the file ~/openclaw-jetlag/.oauth-token.json exists.
If it does not exist, stop immediately and reply:
> β οΈ Google authorization hasn't been completed yet. Run this once in your terminal to finish setup: > >
> cd ~/openclaw-jetlag && node index.js
>
>
> It will open a browser, ask you to sign in to Google, and save your authorization. After that, just say "check my flights" again and I'll handle it from here.Step 3 β Run the planner
Run the following command and capture all output (stdout and stderr):
cd ~/openclaw-jetlag && node index.js
Step 4 β Report back
Reply with a short, plain-language Telegram-friendly summary. Do not dump raw output. Instead:
cd ~/openclaw-jetlag && node index.js manually to see the full output.Keep the reply under 5 sentences. No markdown headers in the Telegram reply β just plain text with line breaks between items if listing multiple flights.