Giter Site home page Giter Site logo

yassenshopov / notion-gcal-sync Goto Github PK

View Code? Open in Web Editor NEW
137.0 4.0 23.0 497 KB

A Python script to automate the syncing of tasks between Google Calendar and the all-in-one productivity workspace, Notion. It utilizes API and is customizable for your own needs. Free to use.

Python 100.00%
notion google calendar notion-api google-calendar google-calendar-api notion-google-sync sync

notion-gcal-sync's Introduction

Notion-GCal Sync

Installation and configuration

  1. Visit this link and duplicate your very own Notion To-Do List database.

    How to Duplicate Notion Template

  2. Clone the repository

    git clone https://github.com/yassenshopov/notion-gcal-sync.git

Stargazers repo roster for @yassenshopov/Notion-GCal-Sync

notion-gcal-sync's People

Contributors

yassenshopov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

notion-gcal-sync's Issues

Sync with more days than just today?

This is honestly an incredible tool! Thanks so much! Just wondering, for me it only syncs tasks for today, is there a way to make it sync all tasks? Or at least all those in the current week?

Also, maybe I'm missing something but is there a way for it to sync 2-way? Right now it only syncs from Google Cal to Notion, I would love for my Notion events to sync back to Google as well!

Thanks!
Forrest

Issue running the script

Hi, I am getting this error when running the script. May I know how do I resolve this?

Traceback (most recent call last):
  File "C:\Users\Celine Ang\Desktop\notionCalSync.py", line 89, in <module>
    service = get_calendar_service()
  File "C:\Users\Celine Ang\Desktop\notionCalSync.py", line 49, in get_calendar_service
    flow = InstalledAppFlow.from_client_secrets_file(
  File "D:\Softwares\Python\Python38\lib\site-packages\google_auth_oauthlib\flow.py", line 203, in from_client_secrets_file
    with open(client_secrets_file, "r") as json_file:
FileNotFoundError: [Errno 2] No such file or directory: 'credentials.json'

cal_setup, list_calendars modules not found

I wasn't sure which python file to run first I just went down the list. Using the comments in the code and the issue already cleared I was able to get configSync to work.

The core issue comes from the gcal-to-notion.py file where I get the above errors.

I couldn't find these modules to do a pip install from but I did find karenapp's 'google-calendar-python-api' repository. Is that was this is referencing and should it be in the same folder where I run the python code?

If so, the error I eventually run into is:
Traceback (most recent call last): File "C:\Users\Jason\Downloads\notion-gcal-sync-main\notion-gcal-sync-main\gcal-to-notion.py", line 58, in <module> calendarList = list_calendars.list_calendars() AttributeError: module 'list_calendars' has no attribute 'list_calendars'

Or is this import supposed to be from NotionGCal? Importing that function in leads to the same error mentioned below (for obvious reasons)

Trying to run NotionGCal.py hangs and when I kill it, I can see it stopped on line 81 of that file where it references:
events = service.events().list(calendarId = calendar['id']).execute()

Any help or more detailed installation would be greatly appreciated. I'm not extremely well versed in python so..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.