Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 704 Bytes

File metadata and controls

45 lines (36 loc) · 704 Bytes

Focus Tracker CLI

Notion setup

Create table with next columns:

  1. Task (title)
  2. Area (select)
  3. Activities (select)
  4. Minutes (number)
  5. Hours (formula based on minutes) (optional)
  6. ... (optional)

Env setup

  1. Go to notion developers website and create new integration. Copy secret key.
  2. Copy database id

Create and fill .env

cp .env.sample .env
# .env
DATABASE_ID=<datablase id>
NOTION_SECRET_KEY=<your secret key>

Install deps and build

yarn
yarn build

Log focus session command

# start
./bin/run task activity="Activity name" area="Area name"

#...time...

# stop
./bin/run task activity="Activity name" area="Area name"