Node.js image to pull GPX workout tracks from Endomondo.
1.2K
Endomondo will be shut down by Under Armor by the end of 2020. As if that year hasn't been bad enough...
By March 2021 UA will pull the plug on Endomondo's data as well. Of course there's a great option to keep that data: sign up for UA's app, consent to their less-than-GDPR-friendly terms, and sync away.
But what if I don't want to do that? Then there's the option to send in a request to have your data exported to a zip file. Good luck with that- I tried several times and never got an answer.
Then there's tapiriik. A great service meant to syc data between apps, Dropbox, and what have you. I've been using it forwever to keep Endomondo and Runkeeper in sync. Unfornatunaly it's been broken for at least 6 months.
So - something else. I found an excellent API handler for Endomondo. Go check it out.
To run that JavaScript goodness and get some actual data out of Endomondo we need Node; I went down the Docker-route to get that set up. Using the latest node image based on Alpine worked great. If you don't want to use the image here then you can find the dockerfile on Github
I wasn't quite happy with the filenames generated by the API-handler's example script. So I took the liberty to rewrite that a bit (note: I'm everything but a JavaScript developer - but it works). The filenames now reflect the time of the workout, the activity, distance, durations and kcal's spent. I'm thinking about making an extra script to export all that into a csv; we'll see.
The Docker image has 4 environmental variables you can use:
ENDO_USER should be set yo your Endomondo username (required!!).ENDO_PASS should be set yo your Endomondo password (required!!).ENV ENDO_PATH is where your gpx files will be written to. It defaults to /root/endoexport/gpx. Make sure you have map something local into our container in this directory so you can retrieve the actual files.TZ will set your timezone. Europe/Amsterdam is the default (go Orange!)The image is multi-architecture, so it should run on most machines, including your trusty Pi.
So here's an example:
docker run --detach --volume <my/local/path/gpx>:/root/endoexport/gpx --env ENDO_USER="[email protected]" --env ENDO_PASS="yourverysecretpassword" sjambor/endoexport
Content type
Image
Digest
Size
45.1 MB
Last updated
almost 6 years ago
docker pull sjambor/endoexport