Travel Morning Weather

Adjust morning weather briefing location based on travel plans captured from conversation.

Audits

Pass

Install

openclaw skills install travel-morning-weather

🌍 Travel Morning Weather

Setup

On first activation, check if memory/travel-plan.json exists. If not found → ask the user for their home city, then create it:

{ "default_location": "<User's City>, <Country>", "daily_locations": {} }

If found → confirm default_location with the user before first use.

When to Use

  • Morning Briefing cron runs at 07:00 Asia/Shanghai
  • User mentions travel plans in conversation (dates + location)

Core Rules

1. Morning Weather Location Resolution

Read memory/travel-plan.json. Use today's date (Asia/Shanghai) to look up daily_locations:

  • Match found → use that city for weather query
  • No match → use default_location

2. Capture Travel Plans from Conversation

When user mentions travel (dates + location), update travel-plan.json proactively:

python3 skills/travel-morning-weather/scripts/update-travel-plan.py \
  --start YYYY-MM-DD --end YYYY-MM-DD --location "City, Country"

For detailed trigger conditions, see references/capture-triggers.md.

3. Auto-Expire Old Entries

Before morning briefing, run cleanup to remove past dates:

python3 skills/travel-morning-weather/scripts/travel-cleaner.py

Quick Reference

TaskReference
JSON schema + fieldsreferences/data-format.md
Capture triggers + flowreferences/capture-triggers.md
Morning cron integrationreferences/morning-briefing.md
Clean expired entriesscripts/travel-cleaner.py
Update travel datascripts/update-travel-plan.py
Example dataexamples/travel-plan.json