- Request data export from strava https://www.strava.com/athlete/delete_your_account
- Download & Extract
- Run Script above on folder:
bash extract_all.sh export_123456
- Derive only accepts gpx format, so we need to convert first - This will copy all files as converted gpx files into export_123456/GPX_OUT
- D&Drop all gpx files into https://erik.github.io/derive/
- Enjoy!
Created
June 2, 2018 15:21
-
-
Save zealot128/1069666e9e8ee64e2b1bdafe77d99208 to your computer and use it in GitHub Desktop.
Strava personal heatmap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd "$1" | |
outdir='GPX_OUT' | |
mkdir -p $outdir | |
cp activities/*.gpx $outdir | |
cd activities | |
for i in `ls *.fit.gz` | |
do | |
echo "converting ${i} to gpx" | |
dest="../$outdir/$i" | |
gunzip < "$i" | gpsbabel -i garmin_fit -f - -o gpx -F "${dest}.gpx" | |
done | |
for i in `ls *.tcx.gz` | |
do | |
echo "converting ${i} to gpx" | |
dest="../$outdir/$i" | |
gunzip < "$i" | sed 's/^ *<.xml/<?xml/' | gpsbabel -i gtrnctr -f - -x simplify,count=999 -o gpx -F "${dest}.gpx" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment