Files
vault-para/200-area/Health/自行车.md
T
zhiqiang feng d1564fe7f9 Batch 5: Content optimization and language tagging
- Add language tags to content files (lang: en/zh)
- Add frontmatter to Design Your Habits.md (English content)
- Add frontmatter to 自行车.md (Chinese content)
- Final verification: 28 markdown files in 200-area/

(vault changes by Claude Code)
2025-12-29 14:59:40 +08:00

1.4 KiB

title, tags, lang, created, updated
title tags lang created updated
自行车
health
garmin
cycling
data-sync
zh 2025-12-29 2025-12-29

数据同步

佳明国服数据同步到外服 DailySync · GitLab

  • 安装node执行环境

安装 nvm

	
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

安装 node yarn

$ nvm install --lts
$ npm install -g yarn
  • 安装软件
$ git clone https://gitlab.com/zhiqiangf/dailysync.git
$ yarn
  • 配置帐号 打开 src/constant.ts 编辑帐号名
// 佳明中国区账号及密码
export const GARMIN_USERNAME_DEFAULT = '';
export const GARMIN_PASSWORD_DEFAULT = '';

// 佳明国际区区账号及密码
export const GARMIN_GLOBAL_USERNAME_DEFAULT = '';
export const GARMIN_GLOBAL_PASSWORD_DEFAULT = '';
  • 配置定时任务
$ vi sync.sh
#!/usr/bin/zsh

cd /opt/dailysync/dailysync
yarn sync_cn >> /var/log/dailysync.log
#yarn sync_global >> /var/log/dailysync.log

$ crontab -e
0 * * * * /opt/dailysync/dailysync/sync.sh

$ chmod +x sync.sh

$ sudo vim /etc/logrotate.d/dailysync                                                                                                                                           
/var/log/dailysync.log {
    monthly
    create 0644 windy root
    rotate 5
    size=1M
    dateext
    dateformat -%d%m%Y
    notifempty
}