Getting Started
TimeOtter integrates with Google Calendar to execute commands based on your calendar events. Follow these steps to get started.
Prerequisites
- Go 1.21+ (for installation via
go install) - A Google account with Calendar access
- Linux/macOS with cron support
Quick Setup
1. Install TimeOtter
go install github.com/bupd/timeotter/cmd/timeotter@latestOr via Homebrew (macOS):
brew install bupd/tap/timeotter2. Set up Google OAuth
Follow the OAuth Setup guide to create credentials and generate your token.
3. Configure TimeOtter
Create ~/.config/timeotter/config.toml:
CalendarID = "your-email@gmail.com"CmdToExec = "mpv ~/alarm.mp3"TokenFile = "~/.cal-token.json"4. Add to Cron
Add TimeOtter to your crontab to run periodically:
crontab -eAdd this line (runs every 30 minutes):
*/30 * * * * timeotterSee Cron Setup for more details.
Next Steps
- Installation options - Different ways to install
- Configuration reference - All config options
- Troubleshooting - Common issues and fixes