Image: mglaman.dev · Naming my Strava runs from Garmin with a Drupal webhook
Garmin workout names carried into Strava by a Drupal webhook
Matt Glaman used Claude Code to build a Drupal webhook that replaces generic Strava run titles with Garmin workout names and adds workout descriptions.
Credits
- Build author Matt Glaman Source ↗
Earliest dated source: Details reviewed:
The full story
Garmin runs reached Strava with generic names, leaving Matt Glaman to copy workout details by hand. Working with Claude Code, he built a Drupal webhook that matches the two services by activity start time after finding that Strava's external identifier was not the Garmin activity ID.
The webhook updates generic names while preserving manual titles and existing descriptions. It answers Strava before processing the queue, formats nested workout repeats and leaves an activity unchanged when Garmin fails. Claude initially triggered a Garmin rate limit during testing, then repeated a smaller test with delays.
The maker reports completing the change in under two hours and testing it with a real subsequent run. He directed the work, reviewed the results and decided when to merge.
Device and compatibility
- Drupal site, Garmin and Strava accounts
The described after-response processing uses PHP-FPM.
Source ↗
What Claude did
- API investigation, Drupal webhook and queue implementation, workout formatter and testingClaude Code Source ↗
How it was done
Tools
Themes
Loading themes…
Sources
From a short post by the maker, so the details are as they tell them.