forked from yihong0618/running_page
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ace5de4
commit 87ef2c8
Showing
25 changed files
with
470 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,7 +77,9 @@ English | [简体中文](https://github.com/yihong0618/running_page/blob/master/ | |
- **[Nike Run Club](#nike-run-club)** | ||
- **[Strava](#strava)** | ||
- **[GPX](#GPX)** | ||
- **[TCX](#TCX)** | ||
- **[Nike_to_Strava(Using NRC Run, Strava backup data)](#Nike_to_Strava)** | ||
- **[Tcx_to_Strava(upload all tcx data to strava)](#TCX_to_Strava)** | ||
- **[Strava_to_Garmin(Using Strava Run, Garmin backup data)](#)** | ||
|
||
## Download | ||
|
@@ -88,7 +90,7 @@ Clone or fork the repo. | |
git clone https://github.com/yihong0618/running_page.git --depth=1 | ||
``` | ||
|
||
## Installation and testing (node >= 12 and <= 14 python >= 3.6) | ||
## Installation and testing (node >= 12 and <= 14 python >= 3.7) | ||
|
||
``` | ||
pip3 install -r requirements.txt | ||
|
@@ -180,12 +182,27 @@ python3(python) scripts/gpx_sync.py | |
|
||
</details> | ||
|
||
### TCX | ||
|
||
<details> | ||
<summary>Make your <code>TCX</code> data</summary> | ||
<br> | ||
|
||
Copy all your tcx files to TCX_OUT or new tcx files | ||
|
||
```python | ||
python3(python) scripts/tcx_sync.py | ||
``` | ||
|
||
</details> | ||
|
||
### Garmin | ||
|
||
<details> | ||
<summary>Get your <code>Garmin</code> data</summary> | ||
<br> | ||
If you only want to sync `type running` add args --only-run | ||
If you only want `tcx` files add args --tcx | ||
|
||
```python | ||
python3(python) scripts/garmin_sync.py ${your email} ${your password} | ||
|
@@ -210,6 +227,8 @@ python3(python) scripts/garmin_sync.py [email protected] example --only-run | |
<details> | ||
<summary>Get your <code>Garmin-CN</code> data</summary> | ||
<br> | ||
If you only want to sync `type running` add args --only-run | ||
If you only want `tcx` files add args --tcx | ||
|
||
```python | ||
python3(python) scripts/garmin_sync.py ${your email} ${your password} --is-cn | ||
|
@@ -340,6 +359,29 @@ References: | |
|
||
</details> | ||
|
||
|
||
### TCX_to_Strava | ||
|
||
<details> | ||
<summary>upload all tcx files to strava</summary> | ||
|
||
<br> | ||
|
||
1. follow the strava steps | ||
2. Execute in the root directory: | ||
|
||
```python | ||
python3(python) scripts/tcx_to_strava_sync.py ${client_id} ${client_secret} ${strava_refresch_token} | ||
``` | ||
|
||
example: | ||
|
||
```python | ||
python3(python) scripts/tcx_to_strava_sync.py xxx xxx xxx | ||
``` | ||
|
||
</details> | ||
|
||
### Nike_to_Strava | ||
|
||
<details> | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ timezonefinder | |
pyyaml | ||
aiofiles | ||
cloudscraper==1.2.58 | ||
python-tcxparser | ||
rich |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
import argparse | ||
import base64 | ||
import hashlib | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.