This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |