stravaviz
is heavily inspired customized alternative to flopp/GpxTrackPoster.
Compared to GpxTrackPoster
I got rid of all the texts and the poster-like look and kept only the facets and tracks.
First of all, you need directory with a bunch of GPX files. I personally do this by
requesting all my Strava data:
Strava > Settings > My Account > Download or Delete Your Account > Get Started > Download Request > Request Your Archive
.
You will have to wait for a few minutes and should receive an email with link to zip with all your data.
Than, extract the zip. Depending on what device you use, the activities might be in other format than GPX.
In my case (I used garmin watches), the format it .fit.gz
and the files need to be decompressed and converted:
cd export_XXX/activities
find *.gz -maxdepth 1 -type f -exec gunzip {} \;
find *.fit -maxdepth 1 -type f -exec gpsbabel -i garmin_fit -f {} -o gpx -F {}.gpx \;
After that you are all set and done to generate the images:
stravaviz --gpx-dir export_XXX/activities --year 2021 --heatmap-center 55.555,11.111 --heatmap-radius 66
stravaviz
tries to load all GPX files in the specified directory (option --gpx-dir
).
Tracks without time stamps and tracks recorded in the wrong year (option --year
) are discarded.
Tracks shorter than 1km are discarded, too
If multiple tracks have been recorded within one hour, they are merged to a single track.
The Facets layouts all tracks in a grid, starting with the earliest track in the upper left corner of the image, continuing with the second earliest track to the left, and so on.
The Elevations layouts all elevation profiles in a grid, starting with the earliest track in the upper left corner of the image, continuing with the second earliest track to the left, and so on. Elevation profiles are scaled based on lowest and highest elevation across all activities.
The Heatmap displays all tracks within one "map".
- Clone the repository:
git clone https://github.com/matoous/stravaviz.git
cd stravaviz
- Create virtualenv:
python -m venv venv
- Activate virtualenv:
source venv/bin/activate
- Install the package:
pip install .
- Run
stravaviz
(see above) - Deactivate virtualenv:
deactivate
- heatmap for Czech republic around a little bit south from Prague
--heatmap-center 49.944082,14.4354303 --heatmap-radius 120
- heatmap for Litomerice
--heatmap-center 50.534632,14.1285293 --heatmap-radius 40