iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🎃

Creating Notion Diary Pages from an Android Smartphone

に公開
2022/06/07

Background

I started using Notion. For example, I sometimes record weekend event information in a diary page (which I create as one page per day), but

  1. Creating a page in Notion
  2. Registering that page's link in Google Calendar

was a hassle, so I wanted to streamline it somehow.

My ideal is:

  1. Input a date on a smartphone
  2. A Notion page for that date is created, and the Notion link is set in the calendar event for that date.

Preparation

GAS

I wrote the following code and published it as a web application. Please adjust the properties section to match your own Notion DB.

Android

Use an app called HTTP Shortcuts.
https://play.google.com/store/apps/details?id=ch.rmy.android.http_shortcuts


Set the request URL to the published GAS URL.


Pass a variable named date as a parameter.

The configuration screen for the date variable.

This worked successfully.
I feel like there's more I could do if I can interact with GAS from a smartphone via curl.

Discussion