yihong0618 / running_page

Make your own running home page
https://running-page.vercel.app
MIT License
3.4k stars 977 forks source link

add keep2strava #653

Closed SongJgit closed 2 months ago

SongJgit commented 2 months ago

Only provide the ability to sync data from Keep's multiple sport types to Strava's corresponding sport types, to help those who use multiple devices like me. The web page presentation still uses Strava (or refer to nike_to_strava_sync.py to modify it to suit you). #167 #478 #600 #62 #646 #172

Specifics:

  1. download data from Keep for running, cycling and hiking sport types and generate gpx without intruding into data.db and activities.json.
  2. Upload to Strava, automatically recognised as the corresponding sport type (running, cycling, hiking).
  3. some fields in the successfully uploaded sports data are logged in activities/keep2strava.json (in order to keep track of whether they have been uploaded or not).
  4. Remove the corresponding gpx.

My own best practices:

  1. running/hiking (Huawei/OPPO) -> Keep
  2. Keep -> Strava
  3. cycling(Garmin) -> Strava.
  4. running_page(Strava)
yihong0618 commented 2 months ago

some of code are the same as keep_sync.py can we extract them?

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
running-page ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 17, 2024 2:15am
SongJgit commented 2 months ago

some of code are the same as keep_sync.py can we extract them?

I've made the appropriate changes.