/topir

Physical information radiator for my Todoist stats

Primary LanguagePHP

Topir

Physical information radiator for my Todoist stats

Requirements

Requires PHP 7.2+ and MySQL 5+.

Installation

  1. Clone the repository.
  2. Run php composer.phar install.
  3. Create a database.
  4. Copy the .env.example file to .env and add relevant settings.
  5. Run the migrations by executing ./vendor/bin/doctrine-migrations migrate --all-or-nothing.
  6. Serve the public folder using a common, PHP-enabled webserver.

Setting up the data-collection cron jobs

  1. 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.
  2. 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.

License

MIT

Development

Jakob Buis