搭建Running_Page页面
Awua Lv1

环境

  1. Mbp 16 2021

教程

  1. Github 仓库文档
  2. YouTube https://www.youtube.com/watch?v=reLiY9p8EJk

过程

  1. 源码地址: https://github.com/yihong0618/running_page
  2. 安装 python 以及相关的环境
    • python3 -m venv myenv
    • source myenv/bin/activate
  3. 安装需要的包以及启动
    • pip 3 ins jtall -r requirements. Txt
    • npm install -g corepack && corepack enable && pnpm install
    • pnpm develop
  4. 测试拉取数据 (用的是 keep)
    • 拉取数据之后才能生成对应的图表
      • python 3 run_page/keep_sync. Py ${keep_phone_number} ${keep_password};
    • 生成统计数据
      • python 3 run_page/gen_svg. Py –from-db –title “跑步记录” –type github –athlete “Awua” –special-distance 10 –special-distance 2 20 –special-color yellow –special-color 2 red –output assets/github. Svg –use-localtime –min-distance 0.5
      • python 3 run_page/gen_svg. Py –from-db –type circular –use-localtime
    • 重新启动 pnpm develop 得到基于 keep 拉取数据的图表
  5. 将仓库清理掉 git 信息之后重新初始化 git 推送到自己的 github
    1. 配置 Github Action
  6. 配置修改
  7. Run_data_sync.yml
    1. 配置修改
      1. Run_data_sync. Yml
1
2
3
4
5
6
7
8
9
env:  
# please change to your own config.
RUN_TYPE: keep # support strava/nike/garmin/coros/garmin_cn/garmin_sync_cn_global/keep/only_gpx/only_fit/nike_to_strava/strava_to_garmin/tcx_to_garmin/strava_to_garmin_cn/garmin_to_strava/garmin_to_strava_cn/codoon/oppo, Please change the 'pass' it to your own
ATHLETE: Awua
TITLE: Awua Running
MIN_GRID_DISTANCE: 3.0 # change min distance here
TITLE_GRID: Over 3km Runs # also here
GITHUB_NAME: "hrers@github.com" # default Actions bot you can change it to yours
GITHUB_EMAIL: "zjwawu@gmail.com" # default Actions bot you can change it to yours
 Comments
Comment plugin failed to load
Loading comment plugin
Powered by Hexo & Theme Keep
Unique Visitor Page View