home

ct

ct is a command line tool I created to track some basic metrics daily, such as my body weight and walking distance.

The intent of ct is to help consistently track key metrics so that I can track my progress.

ct stands for consistency tracker.

Source

github.com/rene00/ct

Current Status

ct is no longer actively developed.

Usage

Initialise a ct config file and database:

$ ct init

Create a metric called weight:

$ ct metric create weight

Create a log for the weight metric:

$ ct log create weight 100

Create a log for the weight metric with a timestamp that is in the past:

$ ct log create weight 90 --timestamp 2020-01-22 

Update an existing log:

$ ct log create weight 95 --timestamp 2020-01-22 --update

Produce a monthly report on weight:

$ ct report monthly weight
+---------+---------+-------+
|  MONTH  | AVERAGE | COUNT |
+---------+---------+-------+
| 2020-01 |     95  |     2 |
+---------+---------+-------+

Configure metric to be an integer:

$ ct configure weight --data-type int

Configure text to be shown when logging a metric without passing the value param:

$ ct configure weight --value-text "whats your weight?"

Create a log for the weight metric without passing the value param and be prompted with the value-text config option:

$ ct log weight
whats your weight? 

Dump your data to json:

$ ct dump

Prompt for all metrics that dont have logs for today:

$ ct log prompt

Data

A metric has a: