Skip to content

Instantly share code, notes, and snippets.

View koni-ey's full-sized avatar
🚴
Focusing

Konstantin Eyhorn koni-ey

🚴
Focusing
View GitHub Profile
@koni-ey
koni-ey / notion_to_gcalendar.gs
Last active February 14, 2022 15:58
Simple Notion to Google Calendar One Way Sync with Google App Scripts.
// WARNING: USE A SEPERATE "NOTION" CALENDAR (Create a new one in Google Calendar) Script will clear the given Calendar!!!!
// Just create a new Google App Scripts Project, add Google Calendar API Integration, and update your credentials.
// You might have to tweak the propertynames, to match your Database setup.
// I have a set it up to Trigger every one minute and only updates the calendar when an item of the DB was edited in the last 5 minutes
// to not stress the Calendar API too much ;).
// Absolute JS rookie here so feel free to improve.
function notion_to_gcalendar() {
var calendarID = "YOUR_CALENDARID" // e.g. 23124fs49s9cs52cd5utuasdd@group.calendar.google.com USE SEPERATE CALENDAR FOR THIS