This repository is a simplified Node.js rewrite of the existing python implementation Mi-Fit-and-Zepp-workout-exporter.
Workouts that will be exported are (this can be tweaked to your preferences in gpx_exporter.js
):
- Run
- Hike
- Ride
- Swim
- WeightTraining
- Yoga
npm install
- Open the GDPR page
- Click
Export data
- Sign in to your account
- Open the developer tools in your browser (F12)
- Select the
Network
tab - Click on
Export data
again - Look for any request containing the
apptoken
header or cookie - Paste the token in .env file as the
API_AUTH_TOKEN
value instead of<token>
The script authenticates the user with the API then exports all workouts to the output directory (./workouts
) in GPX format.
npm run export
Big thanks to rolandsz!