Skip to content

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

Terminal window
go install github.com/bupd/timeotter/cmd/timeotter@latest

Or via Homebrew (macOS):

Terminal window
brew install bupd/tap/timeotter

2. 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:

Terminal window
crontab -e

Add this line (runs every 30 minutes):

*/30 * * * * timeotter

See Cron Setup for more details.

Next Steps