Code Monkey home page Code Monkey logo

notion-workout-copier's Introduction

Notion Automation

Overview

A configuration based nodejs application which will automate creation of Notion documents, along with various manipulations of the documents upon creation.

Features

  • Weekly Document Creation - Most recently created document in the list used as template
  • Date and Document count based naming support
  • Automated unchecking of columns on document creation
  • Support for select type columns

Not Yet Supported

  • Document Creation in folders with 100+ items
  • Document archiving

Running Locally

  • npm install
  • copy env.example to .env
  • replace NOTION_TOKEN with your Notion API token
  • npm run local OR Debug with VSCode Launch Configuration

Configuration Options

See event.sample.json for config structure. config property should always be an array.

  • (Required) parent - The id of the notion page which contains your child databases to be copied
  • (Required) title - The title to be applied to the created document
    • Title creation supports the following dynamic tokens for replacement:
    • [PAGE_COUNT] - The number of pages within the list of documents
    • [DATE] - The date that the document is created in mm/dd format
  • sortBy - The column name to sort by (descending)
  • selectColumns - An Array of strings, where the strings are the column names of any Select type columns (these must be explicitly handled differently)
  • uncheckColumns - An array of column names to uncheck

Use Cases

A Mildly Complex Scenario - Workout Copier

  • Every Monday morning, copy the most recently created workout page
  • Rename it to Week [N] - [current_date]
  • Uncheck all done boxes
  • Includes a Select style Column

notion-workout-copier's People

Contributors

sgrieb avatar

Watchers

 avatar

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.