luizjr8 / Mi-Fit-and-Zepp-workout-exporter

A Python script which allows users to export workout data from Mi Fit and Zepp applications.

Home Page:https://rolandszabo.com/reverse-engineering/mi-fit/export-mi-fit-and-zepp-workout-data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mi Fit and Zepp workout exporter

This repository contains an example Python implementation for the article.

Environment setup

pip install -r requirements.txt

Usage

The script downloads all workout data and stores them in the output directory with the specified format.

python3 main.py [-h] [-e ENDPOINT] -t TOKEN [-f {gpx,geojson,gpkg,parquet,shp,csv,json,xlsx,sql,xml,html}] [-o OUTPUT_DIRECTORY]

Acknowledgements

The latitude/longitude parsing is based on Miroslav BendĂ­k's MiFitDataExport project.

How to get a token

The issue discussed the problem with the acquisition of the token. In this issue, there was a suggestion how to get a token through the web

Steps to get a token

  1. Open this link
  2. Choose "Export data"
  3. Sign in to your zepp account
  4. Again choose "Export data"
  5. Open Google inspector
  6. Choose Network
  7. Select any field to export
  8. Fill in the email and verification code
  9. After completion, you will be taken to the last page with success
  10. Explore the network and find the process name dataExportation
  11. Look for the apptoken field

About

A Python script which allows users to export workout data from Mi Fit and Zepp applications.

https://rolandszabo.com/reverse-engineering/mi-fit/export-mi-fit-and-zepp-workout-data

License:MIT License


Languages

Language:Python 100.0%