command-line interface to sync data between Notion Task and Google Calendar Event.
Do you find yourself juggling between Notion and Google Calendar to manage your events? Fret not! This awesome code is here to save your day. It magically extracts event details from your Notion Database and seamlessly integrates them into your Google Calendar events. There's more! It even adds a handy URL to your GCal event, so you can effortlessly jump back to the specific Notion Page related to the event. How cool is that?
Warning: Proceed with caution! This repo wields the power to make changes to your Notion database and Google Calendar. So, if you're not confident about what you're doing, buckle up and brace yourself for some unexpected surprises.
- Google account
- Notion account
- GitHub account (optional)
- python3
- update from google cal to notion task
- update from notion task to google cal
- Ability to change timezones by changing
timecode
andtimezone
innotion_setting
- Ability to change the date range by changing
goback_days
andgoforward_days
innotion_setting.json
(If you are new here, please use 1 and 2 days respectively before you understand the code) - Able to decide the default length of new GCal events by changing
default_event_length
innotion_setting.json
- Option to delete gCal events if checked off as
GCal Deleted?
column in Notion - Sync across multiple calendars and choose which calendar you would like to sync by changing
gcal_dic
innotion_setting.json
- Able to name the required Notion columns whatever you want and have the code work by changing
page_property
innotion_setting.json
- credential and OAuth consent screen with google calendar scope
Go to the terminal, and change the folder to where these script are:
cd src
To run the basic synchronization between Notion and Google Calendar:
python3 main.py
To synchronize events based on a specific date range, use the following command:
python3 main.py -t <look_back_days> <look_ahead_days>
<look_back_days>
: Number of days to look back from the current date.
<look_ahead_days>
: Number of days to look forward from the current date.
To force an update of Notion tasks from Google Calendar events within a specified date range, use the following command:
python3 main.py -g <look_back_days> <look_ahead_days>
To force an update of Google Calendar events from Notion tasks within a specified date range, use the following command:
python3 main.py -n <look_back_days> <look_ahead_days>
Change the folder to where these script are:
cd tests