daylog is a simple command line utility enabling semi-pretty customizable logging of basic statistics about your life. When ran, the script presents a customizable statistical summary of data collected from previous days, prompts the user to collect data for the current/past day, saves the new data to a json "db" file, and commits the changes to a (private) GitHub repository.
- Install Node.js and check that node properly installed by running
node --versionin the command line. - Fork the repository and make your copy private.
- Clone the repository.
- Open the repository locally run
npm install - (Reccomended:) If you are not on windows (does this exist on LINUX), appand
~/.zshrcalias daylog='node ~/Dev/daylog_script/main.js' - run
daylogin terminal to log daily (or runnode main.jsin the cloned repository)
To modify the questions you are prompted, change questions.js. The script is still using the old version of inquirer.js. See possible question prompt styles here. Probably the easiest way to add change questions is follow the current pattern.
To modify the statistics printed when first prompted, add a new function to stats.js and export it. The function should take db, the js parsing defeault_db.json and return ["what f returns", f(db)].
Personally, I found that logging (every morning) kept me
- Accountable: I am very effected by being even slightly tired and I struggle with going to bed on time. Logging my bedtime every day, and assigning a score to it made me go to bed much earlier.
- Appreciative: Logging every morning forced me to reflect on the prior day. When I do reflect, and in particular have to assign a rating to my day, I realize all the fantastic things I am fortunate for and feel tremendously better.
For further discussion on this see this blogpost I have yet to write