Skip to content

Latest commit

Β 

History

History
125 lines (84 loc) Β· 3.16 KB

File metadata and controls

125 lines (84 loc) Β· 3.16 KB

Fitness Tracker Update Options

There are multiple ways to update your fitness tracker:

πŸ“± iOS / iPad (Recommended for Daily Use)

Best for: Quick daily logging on your phone

Use the iOS Shortcuts app to create a button on your home screen.

Setup Guide: IOS_SHORTCUT_SETUP.md

Features:

  • βœ… Date picker with calendar
  • βœ… Easy menu selection (Exercise + Diet, Exercise Only, etc.)
  • βœ… Home screen widget
  • βœ… Siri support: "Hey Siri, Log Fitness"
  • βœ… Can automate to remind you daily

Time to setup: ~10 minutes


πŸ’» Mac Terminal (For Developers)

Best for: Command-line users, automation scripts

Use the shell script to trigger updates from your Mac terminal.

Script: .github/scripts/trigger_fitness_update.sh

Usage:

# Set your GitHub token (one time)
export GITHUB_TOKEN="your_token_here"

# Update fitness for today
./trigger_fitness_update.sh 2024-12-03 true true

# Arguments: [date] [workout:true/false] [diet:true/false]

Features:

  • βœ… Fast command-line updates
  • βœ… Can integrate into other scripts
  • βœ… Good for batch updates

🌐 GitHub Actions UI (Manual Trigger)

Best for: Occasional updates, testing

Go directly to GitHub and trigger the workflow manually.

Steps:

  1. Go to: https://github.com/mreider/mreider.com/actions
  2. Click "Update Fitness Tracker" workflow
  3. Click "Run workflow" button
  4. Fill in:
    • Date (YYYY-MM-DD)
    • Workout (true/false)
    • Diet (true/false)
  5. Click "Run workflow"

Features:

  • βœ… No setup required
  • βœ… Works anywhere with web browser
  • βœ… Most reliable (direct GitHub interface)

πŸ”‘ Getting Your GitHub Token

All methods (except GitHub UI) require a Personal Access Token:

  1. Visit: https://github.com/settings/tokens/new
  2. Name: "Fitness Tracker"
  3. Expiration: Choose 90 days or No expiration
  4. Select scopes:
    • βœ… repo (Full control of private repositories)
    • βœ… workflow (Update GitHub Action workflows)
  5. Click "Generate token"
  6. Copy the token (you won't see it again!)

Security tip: Store it securely! Don't share it or commit it to GitHub.


πŸ“Š Viewing Your Progress

After updating, check your fitness tracker page:


πŸ†˜ Troubleshooting

"Workflow not found"

  • Check repository name is correct: mreider/mreider.com
  • Verify workflow file exists: .github/workflows/update-fitness.yml

"Bad credentials"

  • Token expired - generate a new one
  • Token doesn't have workflow scope - regenerate with correct scopes

"Nothing happens"

"Date not found in tracker"

  • The date must exist in content/fitness.md
  • Add new weeks manually or create a script to generate them

🎯 Recommended Setup

Daily users: Set up the iOS Shortcut (10 min setup, super convenient after)

Power users: Use both - iOS for daily logging, terminal for batch updates

Occasional users: Just use the GitHub Actions UI