Skip to content

View a calendar of Google Group OOO events from your CLI.

License

Notifications You must be signed in to change notification settings

klaasmeinke/ooo-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ooo-view

View a calendar of Google Group OOO events from your CLI.

Why

Google Calendar doesn't offer a consolidated view of out-of-office events from multiple team members — even if you have access to their individual calendars.

Solution

% ooo-view --weeks 3 team@example.com

May 12 - May 18      | Mon | Tue | Wed | Thu | Fri | Sat | Sun |
----------------------------------------------------------------
danny@example.com    |     |     |     | OOO |     |     |     |
jenny@example.com    |     | OOO |     |     |     |     |     |
----------------------------------------------------------------

May 19 - May 25      | Mon | Tue | Wed | Thu | Fri | Sat | Sun |
----------------------------------------------------------------
No OOO Events
----------------------------------------------------------------

May 26 - Jun 1       | Mon | Tue | Wed | Thu | Fri | Sat | Sun |
----------------------------------------------------------------
jenny@example.com    | OOO | OOO | OOO | OOO | OOO |     |     |
----------------------------------------------------------------

ooo-view is an easy CLI tool that provides a clear, consolidated view of out-of-office (OOO) events for members of a Google group. It fetches data directly from the Google Calendar API and displays it in an easy-to-read weekly format in your terminal.

Features

  • Also works for individual emails
  • Customizable time range (default: 8 weeks)
  • Configurable minimum duration for OOO events
  • Timezone support
  • Secure credential storage using system keyring
  • Beautiful terminal output

Prerequisites

  • Go: Version 1.18 or later installed.
  • Google Cloud Project: You'll need an OAuth 2.0 Client ID from a Google Cloud Project with the Google Calendar API enabled. The tool will guide you through the specifics if it can't find a stored client secret.

Installation

Using Go Install

go install github.com/klaasmeinke/ooo-view@latest

From Source

# Clone the repository
git clone https://github.com/klaasmeinke/ooo-view.git
cd ooo-view

# Build the project
go build

# Install globally
go install

Usage

Basic usage:

ooo-view <group-email>

Options:

--weeks N         Number of weeks ahead to check (default: 8)
--min-duration D  Minimum duration of OOO events (e.g., 24h, 48h, 72h)
--timezone TZ     Time zone for calendar display
--reset-secret    Reset stored client secret
--reset-token     Reset stored OAuth token

Examples:

# View OOO events for the next 2 weeks
ooo-view --weeks 2 team@example.com

# Only show OOO events that are at least 48 hours long
ooo-view --min-duration 48h team@example.com

# Use a specific timezone
ooo-view --timezone "America/New_York" team@example.com

Configuration

The tool stores your Google OAuth credentials securely using your system's keyring. You can reset these credentials using the --reset-secret and --reset-token flags.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

View a calendar of Google Group OOO events from your CLI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages