There are multiple ways to update your fitness tracker:
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
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
Best for: Occasional updates, testing
Go directly to GitHub and trigger the workflow manually.
Steps:
- Go to: https://github.com/mreider/mreider.com/actions
- Click "Update Fitness Tracker" workflow
- Click "Run workflow" button
- Fill in:
- Date (YYYY-MM-DD)
- Workout (true/false)
- Diet (true/false)
- Click "Run workflow"
Features:
- β No setup required
- β Works anywhere with web browser
- β Most reliable (direct GitHub interface)
All methods (except GitHub UI) require a Personal Access Token:
- Visit: https://github.com/settings/tokens/new
- Name: "Fitness Tracker"
- Expiration: Choose 90 days or No expiration
- Select scopes:
- β
repo(Full control of private repositories) - β
workflow(Update GitHub Action workflows)
- β
- Click "Generate token"
- Copy the token (you won't see it again!)
Security tip: Store it securely! Don't share it or commit it to GitHub.
After updating, check your fitness tracker page:
- Live site: https://mreider.com/fitness/
- Local: Open
content/fitness.mdin browser after running Hugo
"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
workflowscope - regenerate with correct scopes
"Nothing happens"
- Check GitHub Actions tab: https://github.com/mreider/mreider.com/actions
- Look for running or failed workflows
- Check workflow logs for errors
"Date not found in tracker"
- The date must exist in
content/fitness.md - Add new weeks manually or create a script to generate them
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