Author: Isaac Hong Wong (iwong@uoregon.edu)
Grabs appointment data from a user's Google Calendar, and then displays the busy times within a specified time range, for each of the dates within a specified date range
- Submit a specified time range, and then a specified date range
- You will be redirected to a google authorization page to log in
- Once authorized, select the calendars from which you want to extract busy times
- Submit, and the busy times from those calendars within the time and date range will be displayed
You will need a Google API key, and set it up to allow the redirect URI
http://my_server_ip:my_port/oauth2callback
- Copy the credentials-skel file to the meetings folder
cp credentials-skil.ini meetings/credentials.ini
-
Download the Google client secrets file from the Google API, and reference the path from the credentials.ini file. Also set up any configuration variables as you see fit in the credentials.ini file
-
Run
make install
make run
Will disregard: transparent events
Will not disregard: All day events Events that span multiple days
Eg) If the time specified is 9am to 5pm, from 11/11 to 11/14(MM:DD), then the following events with times will be regarded as:
| Times | Is Busy
| --- | ---
| 7am to 8am | False
| 7am to 10am | True
| 10am to 11am | True
| 7am to 6pm | True
| 4pm to 7pm | True
| 7pm to 8pm | False
Eg) For events spanning multiple days:
| Times | Is Busy
| --- | ---
| 11/11 7pm to 11/12 8am | False
| 11/11 7pm to 11/12 10am | True