track-focus

command module
v0.0.0-...-3f0efae Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 10 Imported by: 0

README

Tracking daily focus with the Forest app

So you track how much you focus, perhaps for work or your studies. Have you ever thought, "I need to focus X hours per day"? But how do you know if you're meeting this target? Enter track-focus!

All you need is a CSV file exported from your Forest app.

Install

To start using track-focus, install Go and run go install:

go install github.com/armmam/track-focus@latest

Usage

  • Navigate to ≡ → Settings → Your Profile → Export your Data
  • Transfer the .csv file to your computer
  • Pass the file path to track-focus
  • Optionally, specify:
    1. How many hours per day you want to be focusing (defaults to 8)
    2. Whether you want a .csv file with your data or a nice chart

Flags

  -begin string
        beginning of tracked period in the format YYYY-MM-DD
  -end string
        end of tracked period in the format YYYY-MM-DD
  -file string
        path to .csv file (required)
  -hours int
        target number of hours to focus per day: between 0 and 23 (default 8)
  -out string
        path to output .csv file (default "tracked_focus.csv")
  -port string
        serve http on localhost instead of writing to .csv

Example

track-focus -file plants.csv -hours 6 -port 8080

will make two charts available at the endpoints / and /daily on localhost:8080, based on all the data from plants.csv. The chart at / may look like this:


Total

Documentation

Overview

Tracking daily focus with the Forest app.

Organize focus sessions by day to see how close you are to your daily focus hour goals.

Jump to

Keyboard shortcuts

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