Git Product home page Git Product logo

notion-heroku's Introduction

This repository is ⚰️ ARCHIVED ⚰️

notion-heroku as an individual project has been sunsetted and merged into notion-toolbox. In notion-toolbox is where this project lives on. The merge happened on December 27, 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 [email protected]: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

Author

👤 Kevin Jalbert

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

notion-heroku's People

Contributors

kevinjalbert 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

notion-heroku's Issues

Status 405

Hello, I've been following your tutorials and I've getting a 504 error on Heroku:

image

image

image

I got the same using http or google assistant.

Thanks for you great job with this.

Step 6 GET should be POST

In "Step 6 - Complete Webhook Action Fields", the image indicated the web request to be GET. But route accepts only POST. Editting the image may be annoying so adding a little note may be enough instead.
image

Web Request sends query string but code looks for body

In step 6, we attach the textField to the query string in the URL but the code is looking for the textField/title in the response body as show in line 74.
image
The fix would simply put
{ "title":"{{TextField}}" }
in the web request body or put the appropriate key-value depending on the webhook

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.