Skip to content

Automate creating repetitive events in Google Calendar via command line

Notifications You must be signed in to change notification settings

wcarvalho/google_calendar_tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Usage

I assume calendar events follow the format: project:task.

time_dist --start 3/15 --end 3/17

Here's an example from my calendar with dummy data:

Example terminal call Corresponding calendar

Getting Started

Step 1: Install.

# optional
conda create --name cal python=3.7 --yes

#
pip install -e .

Now enter the directory containing this package:

cd google_calendar_tracking

Step 2: turn on the Google Calendar API for this app and get credentials (credentials.json). You only need to do step 1 from Google Python Quickstart tutorial. Place credentials.json in this directory.

Step 3: create a file called settings.yaml and place it in this directory. It should contain the following:

credentials: credentials.json # probably unchanged 

# calendars you want to load
calendars:
- "calendar 1"
- "calendar 2"

# name of events that will be used for assigning time
assignable:
- block
- deep-work
  • calendars: The calendars within your gmail account you want to load data from
  • assignable: The name used for events which you will treat as ''unassigned time". See example below.

Resources

  1. Google Calendar API
  2. My time-management guide

About

Automate creating repetitive events in Google Calendar via command line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages