Habitext is a habit tracking tool that generates PDF reports from habit data in markdown files.
Habits are in the following format in a directory.
habit folder
∟ 01_habit1.md
∟ 02_habit2.md
The file name can by anything, but the order of the habits in the PDF is determined by the order of the files in the folder.
# Metadata
Name: Habit1
Goal: Goal for habit1
# Log
- MMMM-DD-YY
- Note1
- HH:MM
- MMMM-DD-YY
- Note2
- HH:MM
- Note3
- HH:MM
- Note4
- HH:MM
- Install python 3 and pip
- Install required packages
pip install pandas plotnine reportlab
- Clone Repository
git clone https://github.com/ryushida/habitext.git
- Update configuration in config.ini
- Run script
cd habitext
python habitext.py
- Install Docker
- Clone and update settings
git clone https://github.com/ryushida/habitext.git
- Update configuration in config.ini
- Build Docker Container
cd habitext
docker build -t habitext .
- Run script in Docker Container
# Replace C:\Directory\of\habits with local directory where you store the .md files
docker run -it -v C:\Directory\of\habits:/habits/ habitext
You may need to set the timezone for the container. One way is by replacing the 'TZ database name' in the following command. Get your timezone from the 'TZ database name' column in the list of tz database time zones.
docker run --rm -it -v C:\Files\Repos\habits:/habits/ -e "TZ='TZ database name'" habitext