Skip to content
Branch: master
Find file History
kevinjalbert fix: put hack in place to make add_task and add_win work again
With the recent update to notion-py (0.0.21 -> 0.0.25) these two actions
fail. I've documented the issue and placed a hack solution in place for
now. I'm hopeful that a proper solution will be found. If not, then
we can live with the hack (or find a better version for long-term
solutions).
Latest commit d638f89 Jan 6, 2020
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src fix: put hack in place to make add_task and add_win work again Jan 7, 2020
README.md docs: update tool's README files Dec 28, 2019
requirements.txt
step1.png chore: move merged notion-heroku content into the server directory Dec 24, 2019
step2.png
step3.png chore: move merged notion-heroku content into the server directory Dec 24, 2019
step4.png chore: move merged notion-heroku content into the server directory Dec 24, 2019
step5.png chore: move merged notion-heroku content into the server directory Dec 24, 2019
step6.png chore: move merged notion-heroku content into the server directory Dec 24, 2019

README.md

🚧 README is out of date (as of December 26, 2019) 🚧

Heroku hosted application that performs Notion actions (i.e., new task, new note) based on voice requests via IFTTT Webhooks and Google Assistant.

Prerequisites

  1. Have a Notion account
  2. Have a Heroku account
  3. Have an IFTTT account (with Google Assistant service enabled)
  4. Have Specific Notion Template as described in this blog post
  5. Your Notion Token
  6. URLs for Several Notion Object

Install

Note: The required environment variables mentioned in the below steps are outlined in kevinjalbert/alfred-notion's section on finding your Notion Token and finding your Notion URLs.

Additional Note: You will want to set the TZ environment variable for your Heroku application to match your current timezone (i.e., America/Toronto). This will ensure that the correct day is used when creating a note or task.

With Heroku Deploy Button

Deploy

  1. Use above deploy button to create/launch application on Heroku
  2. Navigate to application settings page (i.e., https://dashboard.heroku.com/apps/your-notion-heroku/settings) and set required environment variables.

Manually

  1. Clone the repository via git clone git@github.com:kevinjalbert/notion-heroku.git
  2. heroku create
  3. git push heroku master
  4. Set all required environment variables via heroku config:set xxxx=yyyy

Setting up IFTTT Actions

Click to view walkthrough (images)

This walkthrough demonstrates how to setup a IFTTT action to add a Notion Task.

The main difference is that the webhook URL is either /add_note or /add_task in Step 6.

Step 1 - Choose Trigger Service (Google Assistant)

Step 1

Step 2 - Choose Google Assistant Trigger

Step 2

Step 3 - Complete Google Assistant Trigger Fields

Step 3

Step 4 - Choose Action Service (Webhooks)

Step 4

Step 5 - Choose Webhooks Action

Step 5

Step 6 - Complete Webhook Action Fields

Step 6

You can’t perform that action at this time.