Skip to content

A node.js script which allows users to export workout data from MiFit and Zepp applications.

License

Notifications You must be signed in to change notification settings

ibrcko/nodejs-mifit-zepp-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js - Mi Fit and Zepp workout exporter

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

Environment setup

npm install

Get the token

  1. Open the GDPR page
  2. Click Export data
  3. Sign in to your account
  4. Open the developer tools in your browser (F12)
  5. Select the Network tab
  6. Click on Export data again
  7. Look for any request containing the apptoken header or cookie
  8. Paste the token in .env file as the API_AUTH_TOKEN value instead of <token>

Usage

The script authenticates the user with the API then exports all workouts to the output directory (./workouts) in GPX format.

npm run export

Acknowledgements

Big thanks to rolandsz!

About

A node.js script which allows users to export workout data from MiFit and Zepp applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published