diff --git a/README-CN.md b/README-CN.md index f735e5aeb83..9655cb8eaab 100644 --- a/README-CN.md +++ b/README-CN.md @@ -461,17 +461,21 @@ python3(python) run_page/tulipsport_sync.py nLgy****RyahI 如果你想同步 `fit` 格式,增加命令 --fit -如果你使用Garmin作为数据源建议您将代码拉取到本地获取Garmin国际区的密钥,注意**Python版本必须>=3.10** +如果你使用 Garmin 作为数据源建议您将代码拉取到本地获取 Garmin 国际区的密钥,注意**Python 版本必须>=3.8** + #### 获取佳明国际区的密钥 + 在终端中输入以下命令 + ```python # 获取密钥 python3(python) run_page/get_garmin_secret.py ${your email} ${your password} ``` -![get_garmin_secret](docs/get_garmin_secret.png) + #### 执行佳明国际区同步脚本 -复制上述终端中输出的密钥,如果您是使用Github请在Github Action 中配置**GARMIN_SECRET_STRING**参数 -![get_garmin_secret](docs/add_garmin_secret_string.jpg) + +复制上述终端中输出的密钥,如果您是使用 Github 请在 Github Action 中配置**GARMIN_SECRET_STRING**参数 + 示例: ```python @@ -491,16 +495,22 @@ python3(python) run_page/garmin_sync.py xxxxxxxxxxx 如果你想同步 `fit` 格式,增加命令 --fit -如果你使用Garmin作为数据源建议您将代码拉取到本地获取Garmin国际区的密钥,注意**Python版本必须>=3.10** +如果你使用 Garmin 作为数据源建议您将代码拉取到本地获取 Garmin 国际区的密钥,注意**Python 版本必须>=3.10** + #### 获取佳明国区的密钥 + 在终端中输入以下命令 + ```python # to get secret_string python3(python) run_page/get_garmin_secret.py ${your email} ${your password} --is-cn ``` + ![get_garmin_cn_secret](docs/get_garmin_cn_secret.jpg) + #### 执行佳明国区同步脚本 -复制上述终端中输出的密钥,如果您是使用Github请在Github Action 中配置**GARMIN_SECRET_STRING_CN** 参数 + +复制上述终端中输出的密钥,如果您是使用 Github 请在 Github Action 中配置**GARMIN_SECRET_STRING_CN** 参数 ![get_garmin_secret](docs/add_garmin_secret_cn_string.jpg) 示例: diff --git a/README.md b/README.md index 8830ba95f3b..60ae26aa9ec 100644 --- a/README.md +++ b/README.md @@ -272,20 +272,20 @@ If you only want `tcx` files add args --tcx If you only want `fit` files add args --fit If you are using Garmin as a data source, it is recommended that you pull the code to your local environment to run and obtain the Garmin secret. -**The Python version must be >=3.10** +**The Python version must be >=3.8** #### Get Garmin Secret + Enter the following command in the terminal + ```python # to get secret_string python3(python) run_page/get_garmin_secret.py ${your email} ${your password} ``` -![get_garmin_secret](docs/get_garmin_secret.png) #### Execute Garmin Sync Script Copy the Secret output in the terminal,If you are using Github, please configure **GARMIN_SECRET_STRING** in Github Action. -![get_garmin_secret](docs/add_garmin_secret_string.jpg) ```python # use this secret_string @@ -321,11 +321,14 @@ If you are using Garmin as a data source, it is recommended that you pull the co **The Python version must be >=3.10** #### Get Garmin CN Secret + Enter the following command in the terminal + ```python # to get secret_string python3(python) run_page/get_garmin_secret.py ${your email} ${your password} --is-cn ``` + ![get_garmin_cn_secret](docs/get_garmin_cn_secret.jpg) #### Execute Garmin CN Sync Script @@ -339,14 +342,12 @@ example: python3(python) run_page/garmin_sync.py xxxxxxxxx(secret_string) --is-cn ``` - only-run: ```python python3(python) run_page/garmin_sync.py xxxxxxxxxxxxxx(secret_string) --is-cn --only-run ``` - ### Nike Run Club @@ -678,12 +679,14 @@ For more display effects, see: 1. Go to repository's `Settings -> GitHub Pages -> Source`, choose `GitHub Actions` 2. Go to the repository's `Actions -> Workflows -> All Workflows`, choose `Run Data Sync` from the left panel, and click `Run workflow`. - * The `Run Data Sync` will update data and then trigger the `Publish GitHub Pages` workflow - * Make sure the workflow runs without errors. + +- The `Run Data Sync` will update data and then trigger the `Publish GitHub Pages` workflow +- Make sure the workflow runs without errors. 3. Open your website to check on the results - * note if the website doesn't reflect the latest data, please refresh it by `F5`. - * Some browsers (e.g. Chrome) won't refresh if there is a cache, you then need to use `Ctrl+F5` (Windows) or `Shift+Cmd+r` (Mac) to force clearing the cache and reload the page. + +- note if the website doesn't reflect the latest data, please refresh it by `F5`. +- Some browsers (e.g. Chrome) won't refresh if there is a cache, you then need to use `Ctrl+F5` (Windows) or `Shift+Cmd+r` (Mac) to force clearing the cache and reload the page. 4. make sure you have write permissions in Workflow permissions settings. diff --git a/docs/add_garmin_secret_cn_string.jpg b/docs/add_garmin_secret_cn_string.jpg deleted file mode 100644 index 326148a7cab..00000000000 Binary files a/docs/add_garmin_secret_cn_string.jpg and /dev/null differ diff --git a/docs/add_garmin_secret_string.jpg b/docs/add_garmin_secret_string.jpg deleted file mode 100644 index f27e81e9a86..00000000000 Binary files a/docs/add_garmin_secret_string.jpg and /dev/null differ diff --git a/docs/get_garmin_cn_secret.jpg b/docs/get_garmin_cn_secret.jpg deleted file mode 100644 index b0bf7795e6d..00000000000 Binary files a/docs/get_garmin_cn_secret.jpg and /dev/null differ diff --git a/docs/get_garmin_secret.png b/docs/get_garmin_secret.png deleted file mode 100644 index 17ca033dc30..00000000000 Binary files a/docs/get_garmin_secret.png and /dev/null differ