Forecast for motorcycle tours
README.md

Tourcast #

Plan multi-day motorcycle tours and compare weather along your route. Upload GPX tracks, set riding times for each day, and see five start-date scenarios stacked so you can pick the best day to leave.

Features #

  • Multi-day tours — create a tour, set an earliest possible start date, and add riding days with start/end times
  • GPX track upload — each day gets its own route; the app samples a point along the track every hour while you ride
  • Weather forecast — hourly data from Open-Meteo (free, no API key) for temperature, precipitation, wind, and sunshine
  • Start-date comparison — five scenarios (start on day 0, +1, +2, +3, +4) rendered as stacked weather diagrams
  • Route-aware charts — weather is fetched at the coordinates where you’ll actually be riding, not a single city forecast

Each scenario chart shows:

Metric Display
Max. temperature Orange line (°C)
Wind Dark blue line (km/h)
Precipitation Light blue bars (l/m²)
Sunshine Yellow bars (hours)

Tech stack #

  • PHP 8.3+ / Laravel 13
  • Livewire 4
  • Tailwind CSS 4
  • Chart.js
  • SQLite (default)

Requirements #

  • PHP 8.3+
  • Composer
  • Node.js 20+
  • SQLite (or configure another database in .env)

Setup #

composer install
cp .env.example .env
php artisan key:generate
php artisan migrate
npm install
npm run build

Or use the combined setup script:

composer run setup

Development #

composer run dev

This starts the Laravel server, queue worker, log tail, and Vite dev server together.

Or run them separately:

php artisan serve
npm run dev

Open the app at http://localhost:8000.

Usage #

  1. Create a tour — name it and pick the earliest date you might start (e.g. next Monday).
  2. Add days — for each riding day, set the day number, start/end times, and upload a GPX file.
  3. Refresh forecast — on the tour page, click Refresh forecast to load five start-date scenarios.
  4. Compare visually — scroll through the stacked charts and pick the start date with the best riding weather.

Testing #

php artisan test

Project structure #

app/
  Models/              Tour, TourDay, TourDaySample
  Services/
    Gpx/               GPX parsing and hourly track sampling
    Weather/           Open-Meteo client and forecast builder
resources/
  views/pages/tour/    Livewire pages (index, create, show)
  js/                  Chart.js rendering

License #

MIT