Skip to content

tylerlacroix/timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Track Interval Timer

A web-based interval timer for track workouts with Google Sheets integration.

Features

  • Configurable Intervals: 800m, 400m, 200m, 100m with customizable reps
  • Automatic Rest Periods: 1:1 work-to-rest ratio
  • Google Sheets Integration: Automatic workout logging to your personal spreadsheet
  • Performance Analytics: Speed per 100m tracking and session summaries
  • Multi-User Support: Each user connects their own Google account

Live Demo

https://tylerl.github.io/timer

Usage

  1. Visit the app URL
  2. Configure your intervals
  3. (Optional) Connect Google account for data logging
  4. Start workout!

Setup Google Integration

To enable Google Sheets integration:

  1. Go to Google Cloud Console
  2. Create a new project or select existing
  3. Enable APIs: Google Sheets API + Google Drive API
  4. Create credentials → OAuth 2.0 Client ID → Web application
  5. Add authorized JavaScript origins:
    • http://localhost:8000 (for local testing)
    • https://tylerl.github.io (for production)
  6. Copy Client ID and API Key
  7. Update the credentials in index.html

Privacy

  • Your workout data is saved directly to YOUR Google Sheets
  • No backend server - all data stays between you and Google
  • Revoke access anytime via Google Account settings

Tech Stack

  • Vanilla JavaScript (no framework dependencies)
  • Google Sheets API for data storage
  • Chart.js for analytics visualization
  • Google Identity Services for OAuth

Local Development

# Clone the repository
git clone https://github.com/tylerl/timer.git
cd timer

# Start local server
python3 -m http.server 8000
# Or use Node.js
npx http-server -p 8000

# Open http://localhost:8000

Deployment

This is a static site that can be deployed anywhere:

  • GitHub Pages (current)
  • Vercel
  • Netlify
  • Any static hosting service

Contributing

Pull requests welcome! Please test your changes thoroughly.

License

MIT License - feel free to use for your own training!


Built by Tyler Lacroix for track workout tracking

About

Track interval timer with Google Sheets integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors