🏃🏻‍♂️ Keep running

1 minute read

The Dam tot Damloop run has been cancelled due to the current COVID-19 measures. I was really looking forward to joining it again (I last joined in 2016), so I’ve been training hard to get back into shape in time for the event.

The cancellation news threatened to undermine my newly-recovered motivation to run regularly, so I decided to resort to peer pressure (😉). Luckily, Strava provides an API to query my own data, so I created a simple Python script that:

  • collects my running activities since last Monday from Strava,
  • computes the total distance I have run, and finally
  • saves it to data/running.yaml

I can then show the distance on the homepage by referencing it as {{ .Site.Data.running.mileage.weekly }} (see Hugo docs if interested).

I’m going to run it every Sunday evening so that my progress (or lack thereof) will be visible here!