Giter Club home page Giter Club logo

habitist's Introduction

habitist

habitist.py -ta TODOIST_API_KEY -hu HABITRPG_API_USER -hk HABITRPG_API_KEY

Syncs your todoist tasks to HabitRPG


Supports:

  • Simple Todos as simple Todos
  • Repeating tasks as simple Todos, that renew themselves
  • Daily and weekly tasks as dailies with streak support
  • Labels as tags
  • Projects as special p:project_name tags
  • Subtasks as checklist items

On the short list:

  • Bug Fixes?

Sometime, maybe:

  • Check if it works with Windows
  • Notes into comments
  • Special labels for attributes
  • Priorities as difficulty?

##INSTALL

Only tested on Linux.

You'll need:

Just drop the files in a directory of your choice, change the testing API keys to your own and run it.

It runs in a continuous loop with a 30 second break. Cancel by Ctrl+C.

habitist's People

Contributors

fengqiuadamdong avatar mchlnix avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

fengqiuadamdong

habitist's Issues

Add l10n support

The code to check if a task is repeating only works for the English version right now.

It would be good to break the function out of item into a TodoistHelper class and make it support different languages.

I might work on German.

Dailies can only be scored once

The way habitRPG works, you can only score a daily once a day. On todoist, you can complete repeating tasks in advance, though.

That means, that completions in advance can not be scored on HabitRPG, since the daily is already completed and will not "uncomplete" itself, until the next day.

The program sees the "completed" on the HabitRPG side and the "not completed" on the todoist side and flips it back to uncompleted on HabitRPG.

The Starting Date, the way we track daily completion gets set forward, though.

Solution:

To fix the bug: Make a special case for h:completed/t:uncompleted for dailies to not reset them.

To enable scoring more often: Only update the Starting Date, when the daily is not already completed. Otherwise either leave it out of the task update or not update the task at all. That way the next day, when the daily is not completed, the date comparison will be done with the old Starting date, which will trigger a completion again.

Completed task show up on initial sync, are completed on next

When initially syncing, completed tasks are created on HabitRPG as well. They are not checked for completion afterwards.

That means, that already completed tasks get scored only on the next sync.

That is not really a bug, but it might be easy to fix by not returning out of the sync_to_habit function after uploading a task, as long as no other type of task is negatively affected by this change.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.