What was the problem?
I’m a competitive triathlete. For a couple of years, I’ve wanted to finish an IRONMAN in under 10 hours. In 2025, I finished IRONMAN Ottawa in 10 hours 16 minutes, 16 minutes off my target.
What was the idea?
The bike is the longest part of the race, so I wanted to understand how the wind would affect me. Being able to see the forecast wind on the bike course, at the time I’d ride each part, would help me manage my energy and be ready for a fast marathon.
What did I build?
A web app was the simplest way to see the course on my laptop’s big screen. I already had a VPS at DigitalOcean, so I built it as a Laravel app there, with no new server to set up. A job fetched the forecast every 15 minutes, so a visit never waited on the weather service. I shipped updates with a single command on my Mac.
When someone visits: the browser loads the page through the Cloudflare proxy, Nginx on the DigitalOcean VPS passes it to Laravel, and Laravel reads the last good forecast. Map tiles load straight from OpenStreetMap. Every 15 minutes: a refresh job fetches the Canadian GEM forecast from Open-Meteo, gets 25 hourly readings back, and saves them only if all 25 came back.
When someone visits
- 1The browser asks for the page through the Cloudflare proxy, which puts HTTPS in front.
- 2Nginx on the DigitalOcean VPS handles TLS and rate limits, and passes it to Laravel.
- 3Laravel reads the last good forecast.
- Map tiles load straight from OpenStreetMap.
Timer running every 15 minutes
- AA systemd timer runs the refresh job, which fetches the Canadian GEM forecast from Open-Meteo.
- B25 hourly readings come back.
- CThe job saves them as the last good forecast only if all 25 came back.
What happened?
I shared it with the IRONMAN Ottawa Facebook group. People liked it, but some said the temperatures looked off. That evening, I switched to the Canadian GEM model, whose temperatures were closer to The Weather Network’s. There were 178 visitors in race week, and 55 of them used the wind controls.
I finished the race in 9:38, under my 10-hour goal.
How I’d build it today
If I started over, I’d make it a static page on Cloudflare, with a scheduled Worker that keeps the last good forecast, so there’d be no server to keep patched. I’d also host the course map tiles with the site instead of loading them from OpenStreetMap.
