/ical4notion

Simple tool to host http ical using your notion database

Primary LanguageJavaScriptMIT LicenseMIT

ical4notion

ical4notion is a tool to host http ical using your notion database.

Install

git clone https://github.com/refracta/ical4notion
cd ical4notion
npm install

Run

PORT=[PORT] node index.js [NOTION_API_KEY] [CALENDAR_NAME]

Example) 
PORT=8080 node index.js secret_... MY PLAN1
http://your-ical4notion-domain.com?database_id=YOUR_DATABASE_ID
http://your-ical4notion-domain.com?database_id=YOUR_DATABASE_ID&names=refracta,fresia
// filter by names parameter
http://your-ical4notion-domain.com?database_id=YOUR_DATABASE_ID&emails=refracta@example.com,fresia@example.com
// filter by emails parameter
http://your-ical4notion-domain.com?database_id=YOUR_DATABASE_ID&names=refracta,fresia&emails=refracta@example.com,fresia@example.com
// filter by names, emails parameter

You can access ical from the url above.

Install & Run (Google App Engine)

gcloud init
npm run gae-init
sed -i 's/NOTION_API_KEY/YOUR_NOTION_API_KEY/' package.json
sed -i 's/CALENDAR_NAME/YOUR_CALENDAR_NAME/' package.json
gcloud app deploy

Reference