Skip to content

feat: add per-day weather forecast API and frontend support#238

Open
candogruyol wants to merge 1 commit into
itskovacs:mainfrom
candogruyol:feat/weather-forecast
Open

feat: add per-day weather forecast API and frontend support#238
candogruyol wants to merge 1 commit into
itskovacs:mainfrom
candogruyol:feat/weather-forecast

Conversation

@candogruyol

Copy link
Copy Markdown
Contributor

Per-day weather data for trip days — condition icon + temperature range.

Changes

  • New day_weather table (1:1 with tripday): high_temp, low_temp, condition, rain_chance
  • CRUD router at /api/trips/{trip_id}/days/{day_id}/weather
  • Literal validation on condition values
  • Frontend getDayWeather() API method

How it works

Weather data is populated via Claude Code skills that auto-fetch forecasts when planning trips. The frontend displays it as a badge in day headers (e.g. ☀️ 19°/12°).

The skill (v2) handles the full 16-step trip planning flow including weather enrichment — user says "plan a 3-day Lisbon trip" and the agent researches, creates places, sets weather, builds packing lists, everything in one shot.

Closes #212

New day_weather table (1:1 with tripday) storing high_temp, low_temp,
condition (sunny/partly-cloudy/cloudy/rain/snow/storm), and rain_chance.

CRUD router at /api/trips/{trip_id}/days/{day_id}/weather with Literal
validation on condition values.

Frontend: getDayWeather() API method for fetching weather data per day.
The weather badge (condition icon + temp range) can be displayed in day
headers using this data.

This feature is designed to work with Claude Code skills that auto-populate
weather forecasts via web search when creating trip itineraries.

Closes itskovacs#212
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant