Physical information radiator for my Todoist stats
Requires PHP 7.2+ and MySQL 5+.
- Clone the repository.
- Run
php composer.phar install
. - Create a database.
- Copy the
.env.example
file to.env
and add relevant settings. - Run the migrations by executing
./vendor/bin/doctrine-migrations migrate --all-or-nothing
. - Serve the public folder using a common, PHP-enabled webserver.
- Run the
import/completed.php
script every 5 min or so using cron. The Todoist API only returns statistics for the last 7 days, so you should run the import script at least once daily to avoid missing data. - Run the
import/overdue.php
script just after midnight every day. This script will count the actual amount of overdue tasks at the moment of execution, so the results will change when you run it at different moments. For example, you can give yourself a two-hour grace period by running it at 02:00 instead of 00:05.
MIT