6uhrmittag / taskbutler

Create and add progress bars, Office365 Files and Dropbox Paper papers by labels and link them to your Todoist tasks.
MIT License
50 stars 8 forks source link
python sync todo todoist

.. note:: IMPORTANT NOTICE: The project is currently on hold due to changes in third-party APIs.

I'll try to bring Taskbutler up to date in late 2023.

========== Taskbutler

Taskbutler enriches your Todoist tasks by adding progress bars, Office365 Files and Dropbox Paper papers directly to your tasks.

.. image:: https://travis-ci.org/6uhrmittag/taskbutler.svg?branch=master :target: https://travis-ci.org/6uhrmittag/taskbutler :alt: Travis

.. image:: https://www.codefactor.io/repository/github/6uhrmittag/taskbutler/badge/master :target: https://www.codefactor.io/repository/github/6uhrmittag/taskbutler/overview/master :alt: CodeFactor

.. image:: https://api.codeclimate.com/v1/badges/02c45c0604ad57ffc504/maintainability :target: https://codeclimate.com/github/6uhrmittag/taskbutler/maintainability :alt: Maintainability

.. image:: https://pyup.io/repos/github/6uhrmittag/taskbutler/shield.svg :target: https://pyup.io/repos/github/6uhrmittag/taskbutler/ :alt: Updates

.. image:: https://readthedocs.org/projects/taskbutler/badge/?version=latest :target: https://taskbutler.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

Features

Prerequisites and notes

Taskbutler is not associated or connected with Todoist, Dropbox, Github or Microsoft.

  1. You'll need a Todoist <https://todoist.com>_ premium account
  2. The Dropbox Paper and Github features require a free account at Dropbox. The Microsoft Office365 feature requires a paid Office365 subscription(or a free Microsoft Office 365 Education subscription). This is optional and not required to use the other features of taskbutler!
  3. Taskbutler is tested on Ubuntu
  4. For optimal use, Taskbutler should run periodical on a server/computer to continuously update your tasks

Even though I never experienced any data loss, it's nice to know that \ Todoist provides a daily backup of your data. <https://support.todoist.com/hc/en-us/articles/115001799989>_

Setup

requirements

install

To install the latest taskbutler in your home directory, run this commands in your terminal:

.. code-block:: console

pip install taskbutler --user
# To start taskbutler without full path:
echo 'PATH="$PATH:$HOME/.local/bin/"' >> ~/.bash_profile

configuration

The configuration is stored in your home directory: /home/$YourUsername/.taskbutler/config/config.ini

Each feature can be disabled by leaving the corresponding labelname in the config.ini emtpy. Each feature is configured in the config.ini. Open, edit and save the file to configure Taskbutler.

If you used Taskbutler before and want to change a setting: Remember to stop Taskbutler before changing any setting and always update your existing Todoist tasks manually according to your changes before starting Taskbutler again.

Taskbutler is not aware of your changes and will mix and mess up your tasks. Changes can easily be tested by using a different labelname.

Setup Todoist access ^^^^^^^^^^^^^^^^^^^^

taskbutler needs access to your Todoist account. This is done via an API key, you'll need to create. This key is like a password - don't share it!

  1. Login to Todoist and got to settings -> Integrations (https://todoist.com/prefs/integrations)
  2. Scroll down to "API-Token" and copy the token
  3. paste the token into the config.ini and save:

.. code:: ini

[todoist] apikey = PUT_TOKEN_HERE

Setup Progress bars ^^^^^^^^^^^^^^^^^^^

Edit the config section in config.ini:

.. code:: ini

[todoist] apikey = label_progress = progressbar progress_seperator=‣ progress_bar_0=⬜⬜⬜⬜⬜ progress_bar_20=⬛⬜⬜⬜⬜ progress_bar_40=⬛⬛⬜⬜⬜ progress_bar_60=⬛⬛⬛⬜⬜ progress_bar_80=⬛⬛⬛⬛⬜ progress_bar_100=⬛⬛⬛⬛⬛

Change progressbar symbols """"""""""""""""""""""""""

The bar is implemented by adding unicode charaters_ to the existing text. e.g. ⬛⬛⬜⬜⬜ 33 %

.. code:: ini

[todoist] progress_bar_0=⬜⬜⬜⬜⬜ progress_bar_20=⬛⬜⬜⬜⬜ progress_bar_40=⬛⬛⬜⬜⬜ progress_bar_60=⬛⬛⬛⬜⬜ progress_bar_80=⬛⬛⬛⬛⬜ progress_bar_100=⬛⬛⬛⬛⬛

.. _unicode charaters: http://jrgraphix.net/r/Unicode/2600-26FF

To change the bar to bullets, just overwrite the characters with other characters ''⚫⚫⚫⚪⚪''.

Change progressbar seperator """""""""""""""""""""""""""" To separate the task-text from the progressbar, a rare unicode character is used. Just replace the seperator in the ''config.ini'' file.

.. code:: ini

[todoist] progress_seperator=‣

Remember to rename the separator manually in Todoist before running Taskbutler again!

Edit progressbar label """"""""""""""""""""""

The bar added to every task with the label ''progressbar''. The label-name can be changed in the ''config.ini'' file:

.. code:: ini

label_progress=progressbar

Remember to rename the label in Todoist when renaming labels!

Setup Dropbox features ^^^^^^^^^^^^^^^^^^^^^^

To use any Dropbox feature you need to create a Dropbox API token. You need to create an Dropbox app for that. Don't worry, you only need to setup it once and it is only accessible for you.

Get a API key for your Dropbox(by creating a Dropbox app):

  1. Go to https://www.dropbox.com/developers/apps/create <https://www.dropbox.com/developers/apps/create>_
  2. Select Dropbox API
  3. Select Full Dropbox- Access to all files and folders in a user's Dropbox.
  4. Give it a name (doesn't matter)
  5. Click Create app
  6. On the app settings page click Generated access token and copy the token

Setup Office365 Sync ^^^^^^^^^^^^^^^^^^^^

You need:

Pre-tasks """""""""

Edit the config section in config.ini:

.. code:: ini

[dropbox] apikey =

[dropboxoffice] labelname = letter templatefile = ./templates/ folder=todoist dropbox_prepart_files = https://www.dropbox.com/ow/msft/edit/home/

Setup Dropbox Paper ^^^^^^^^^^^^^^^^^^^

Pre-tasks ^^^^^^^^^

Edit the config section in config.ini:

.. code:: ini

[dropbox] apikey =

[dropboxpaper] todoistfolderid = url = https://paper.dropbox.com/doc/ labelname = paper foldername = todoist sharing = false

Setup Grocery list/Cost calulator ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Edit the config section in config.ini:

.. code:: ini

[todoist] label_grocery = grocery grocery_seperator = 💰 grocery_currency = €

Start Taskbutler ^^^^^^^^^^^^^^^^

Make sure you added the Python default path to your PATH via: echo 'PATH="$PATH:$HOME/.local/bin/"' >> ~/.bash_profile

.. code:: console

# taskbutler now starts by simply typing:
taskbutler

Continuous progress-update ^^^^^^^^^^^^^^^^^^^^^^^^^^

To continuously update your tasks run Taskbutler periodical on a internet connected server or your computer

Ubuntu Server """""""""""""

To run taskbutler every 20Min via crontab (see crontab.guru <https://crontab.guru/>_ for setting time):

  1. type: :code:crontab -e
  2. add the line: :code:*/20 * * * * $HOME/.local/bin/taskbutler
  3. make sure to leave the last line in crontab empty or add a line with just a # at the end!(crontab needs this to work.)

Taskbutler will log to: /home/$YourUsername/.taskbutler/log/todoist.log

Computer(Win/Mac/Linux) """""""""""""""""""""""

Taskbutler doesn't need to run on a server. It is also possible to run Taskbutler on your running computer. Just start Taskbutler manually or add it to your scheduled tasks.

Updates

Taskbutler checks for updates by checking the 'releases page'_ and leaves a message in the console.

To update:

Logging

Taskbutler logs to /home/$YourUsername/.taskbutler/logs The filename can be changed in the config.ini. You can also set the logging level. Default is INFO, DEBUG outputs logs of details.

.. code:: ini

[log]
loglevel= INFO
logfile = todoist.log

Development

To activate dev-mode add to ini file:

.. code:: ini

[config] devmode = true

Devmode doesn't submit changes to Todoist, Dropbox or Github. Set the logging level to DEBUG to get all messages.

.. code:: ini

[log] loglevel=DEBUG logfile = ./todoist.log

Built With

Contributing

Please open a issue in the 'Github issue tracker <https://github.com/6uhrmittag/taskbutler/issues>_.

About Author

Marvin Heimbrodt - github.com/6uhrmittag <https://github.com/6uhrmittag/> | twitter.com/6uhrmittag <https://twitter.com/6uhrmittag>

.. image:: https://www.ko-fi.com/img/githubbutton_sm.svg :target: https://ko-fi.com/K3K01P66S :alt: Donate Coffein via Ko-fi