diff --git a/README-CN.md b/README-CN.md index ac76ff4a270..23f11e1518a 100644 --- a/README-CN.md +++ b/README-CN.md @@ -1,13 +1,15 @@ ## Note + 1. clone or Fork before vercel 404 need to pull the latest code 2. python3(python) in README means python3 python 3. use v2.0 need change vercel setting from gatsby to vite 4. 2023.09.26 garmin need secret_string(and in Actions) get + ```bash python run_page/get_garmin_secret.py ${email} ${password} # if cn python run_page/get_garmin_secret.py ${email} ${password} --is-cn - ``` +``` ![running_page](https://socialify.git.ci/yihong0618/running_page/image?description=1&font=Inter&forks=1&issues=1&language=1&logo=https%3A%2F%2Fraw.githubusercontent.com%2Fshaonianche%2Fgallery%2Fmaster%2Frunning_page%2Frunning_page_logo_150*150.jpg&owner=1&pulls=1&stargazers=1&theme=Light) @@ -85,7 +87,7 @@ R.I.P. 希望大家都能健康顺利的跑过终点,逝者安息。 | [Vint](https://github.com/VintLin) | | Keep | | [Muyids](https://github.com/muyids) | | Garmin-cn | | [Gao Hao](https://github.com/efish2002) | | Garmin-cn | -| [Jinlei](https://github.com/iamjinlei0312) | | AW-GPX | +| [Jinlei](https://github.com/iamjinlei0312) | | 咕咚 | | [Ray Wang](https://github.com/raywangsy) | | Garmin | | [RealTiny656](https://github.com/tiny656) | | JoyRun | | [EINDEX](https://github.com/eindex) | | Strava/Nike | @@ -194,11 +196,10 @@ docker run -itd -p 80:80 running_page:latest > 如果你是海外用户请更改 `IS_CHINESE = false` in `src/utils/const.ts` ```typescript -const MAPBOX_TOKEN ='pk.eyJ1IjoieWlob25nMDYxOCIsImEiOiJja2J3M28xbG4wYzl0MzJxZm0ya2Fua2p2In0.PNKfkeQwYuyGOTT_x9BJ4Q'; +const MAPBOX_TOKEN = + 'pk.eyJ1IjoieWlob25nMDYxOCIsImEiOiJja2J3M28xbG4wYzl0MzJxZm0ya2Fua2p2In0.PNKfkeQwYuyGOTT_x9BJ4Q'; ``` - - ## 个性化设置 > 在仓库目录下找到 `src/static/site-metadata.ts`,找到以下内容并修改成你自己想要的。 @@ -378,6 +379,7 @@ python3(python) run_page/joyrun_sync.py 13333xxxx xxxx ``` joyrun 导出 gpx 文件 + > 导出的 gpx 在 GPX_OUT 目录,方便上传到其它软件 ```bash @@ -907,6 +909,7 @@ python3(python) run_page/gen_svg.py --from-db --type circular --use-localtime ## GitHub Actions + > Fork 的同学请一定不要忘了把 GitHub Token 改成自己的,否则会 push 到我的 repo 中,谢谢大家。
@@ -964,7 +967,6 @@ curl https://api.github.com/repos/yihong0618/running_page/actions/workflows -H "
- ## Github Cache
@@ -1033,17 +1035,18 @@ curl https://api.github.com/repos/yihong0618/running_page/actions/workflows -H " # FAQ -- Strava 100 每 15 分钟的请求,1000 每日限制 +- Strava 100 每 15 分钟的请求,1000 每日限制 - + - 等待时间限制(这里是 strava 接口请求限制),不要关闭终端,这里会自动执行下一组上传数据 + 等待时间限制(这里是 strava 接口请求限制),不要关闭终端,这里会自动执行下一组上传数据 + + ``` + Strava API Rate Limit Exceeded. Retry after 100 seconds + Strava API Rate Limit Timeout. Retry in 799.491622 seconds + ``` - ``` - Strava API Rate Limit Exceeded. Retry after 100 seconds - Strava API Rate Limit Timeout. Retry in 799.491622 seconds - ``` - vercel git 如果想 ignpre gh-pages 可以在 `settings` -> `build` -> `Ignored Build Step` -> `Custom` 输入命令: diff --git a/README.md b/README.md index 002efd663d4..d0d21176c13 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,15 @@ ## Note + 1. clone or Fork before vercel 404 need to pull the latest code 2. python3(python) in README means python3 python 3. use v2.0 need change vercel setting from gatsby to vite 4. 2023.09.26 garmin need secret_string(and in Actions) get + ```bash python run_page/get_garmin_secret.py ${email} ${password} # if cn python run_page/get_garmin_secret.py ${email} ${password} --is-cn - ``` +```

@@ -81,7 +83,7 @@ English | [简体中文](https://github.com/yihong0618/running_page/blob/master/ | [Vint](https://github.com/VintLin) | | Keep | | [Muyids](https://github.com/muyids) | | Garmin-cn | | [Gao Hao](https://github.com/efish2002) | | Garmin-cn | -| [Jinlei](https://github.com/iamjinlei0312) | | AW-GPX | +| [Jinlei](https://github.com/iamjinlei0312) | | 咕咚 | | [RealTiny656](https://github.com/tiny656) | | JoyRun | | [EINDEX](https://github.com/eindex) | | Strava/Nike | | [Melt](https://github.com/fpGHwd) | | Strava | @@ -104,9 +106,9 @@ English | [简体中文](https://github.com/yihong0618/running_page/blob/master/ 4. Mapbox for map display 5. Supports most sports apps such as nike strava... - > automatically backup gpx data for easy backup and uploading to other software. +> automatically backup gpx data for easy backup and uploading to other software. - > Note: If you don't want to make the data public, you can choose strava's fuzzy processing, or private repositories. +> Note: If you don't want to make the data public, you can choose strava's fuzzy processing, or private repositories. ## Support @@ -176,7 +178,8 @@ Open your browser and visit localhost:80 > Suggested changes to your own [Mapbox token](https://www.mapbox.com/) ```typescript -const MAPBOX_TOKEN ='pk.eyJ1IjoieWlob25nMDYxOCIsImEiOiJja2J3M28xbG4wYzl0MzJxZm0ya2Fua2p2In0.PNKfkeQwYuyGOTT_x9BJ4Q'; +const MAPBOX_TOKEN = + 'pk.eyJ1IjoieWlob25nMDYxOCIsImEiOiJja2J3M28xbG4wYzl0MzJxZm0ya2Fua2p2In0.PNKfkeQwYuyGOTT_x9BJ4Q'; ``` ## Custom your page @@ -290,7 +293,7 @@ python3(python) run_page/fit_sync.py - 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.8** + **The Python version must be >=3.8** #### Get Garmin Secret @@ -335,7 +338,7 @@ python3(python) run_page/garmin_sync.py xxxxxxxxxxxxxx(secret_string) --only-run - 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.10** #### Get Garmin CN Secret @@ -851,17 +854,18 @@ Just enjoy it~ - Strava Api limit - - + + - ``` - Strava API Rate Limit Exceeded. Retry after 100 seconds - Strava API Rate Limit Timeout. Retry in 799.491622 seconds - ``` + ``` + Strava API Rate Limit Exceeded. Retry after 100 seconds + Strava API Rate Limit Timeout. Retry in 799.491622 seconds + ``` - vercel git ignpre gh-pages: you can change settings -> build -> Ignored Build Step -> Custom command + ```bash if [ "$VERCEL_GIT_COMMIT_REF" != "gh-pages" ]; then exit 1; else exit 0; ```