recurring

command module
v0.0.0-...-57a6374 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

Recurring Integration

This integration is designed to make habit tracking easier in Notion. A list of tasks present in a given database are recorded. This integration looks for two properties in the database, Done and Last Completed. Whenever a given page in the databae has a completed (true) Done property, the Last Completed property will reset to the current day.

In order to use this integration, clone this code onto your own machine (preferably a server). Then, create a JSON file of your program credentials that follows the format below:

{
  "token": "notion_api_secret",
  "database_id": "notion_database_id"
}

Then, update the constants listed in main.go as follows:

  • Change CREDENTIAL_PATH to the path to your credentials file explained above.
  • Change CYCLE_DURATION to how often you want the program to check for completed tasks
  • Change DAY_OFFSET to how much delay you want when setting Last Completed to the current day (i.e. if you want tasks completed past midnight to count for the previous day)
  • Change TIMEZONE_OFFSET to the amount of hours your timezone differs from UTC

Finally, run go run main.go on your machine to start the integration.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL