I assume calendar events follow the format: project:task.
time_dist --start 3/15 --end 3/17Here's an example from my calendar with dummy data:
|
|
|
| Example terminal call | Corresponding calendar |
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_trackingStep 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-workcalendars: The calendars within your gmail account you want to load data fromassignable: The name used for events which you will treat as ''unassigned time". See example below.