Skip to content

Commit

Permalink
fix: drop pngs
Browse files Browse the repository at this point in the history
  • Loading branch information
yihong0618 committed Oct 6, 2023
1 parent 07c0756 commit a9fd07e
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 15 deletions.
22 changes: 16 additions & 6 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
示例:

Expand Down
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
```


</details>

### Nike Run Club
Expand Down Expand Up @@ -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.

Expand Down
Binary file removed docs/add_garmin_secret_cn_string.jpg
Binary file not shown.
Binary file removed docs/add_garmin_secret_string.jpg
Binary file not shown.
Binary file removed docs/get_garmin_cn_secret.jpg
Binary file not shown.
Binary file removed docs/get_garmin_secret.png
Binary file not shown.

0 comments on commit a9fd07e

Please sign in to comment.