felixbinder / habithings

Python package to create and score from Things 3 (mac app) to habitica

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Habithings (Habitica + Things)

Create and score to habitica from mac application Things 3

  • Things 3 is the award-winning personal task manager that helps you achieve your goals.
  • Habitica is a free habit and productivity app that treats your real life like a game.

Usage

Using pip

Using with python code

Add habitica user key and secret key for environment

TODO: add image for key

Edit habitica api key in env file (vim env)

export HABITICA_API_USER=<your_habitica_api_user>
export HABITICA_API_KEY=<user_habitica_api_key>

And source env file

$ source env

Or you can just hard coding your key in habitica.py

Execute command

python daily_create_and_score

Run regularly by adding

*/30 * * * * bash [PATH]/habithings/daily_create_and_score.sh

to your crontab (crontab -e)

Function

Mandatory

  • [o] export Things3 to sqlite3
  • [o] Create task from things from things3
  • [o] Get task id from response
  • [o] Bulk create task and return id from things3 file
  • [o] Avoid duplication of same task for same content
  • [o] Scoring task from taskid (or groupid)
  • [o] Chnage export bases of things3 from 24h to something else -> based on date
  • Refactor code to Class
  • Packaging or dockerizing
  • validation output for already used task

Optional

  • Get all task ids for tags?
  • Move uncompleted task to habitica?
  • Make backup file for Things3.sqlite before execute command

Spec

  • Python 3 (httpx)
  • Mac OS
  • crontab
  • test code
  • (optional) django or graphql

개발일지

  • due date
    • 1차 개발은 6월 중순
    • 배포는 6월 말까지

About

Python package to create and score from Things 3 (mac app) to habitica


Languages

Language:Python 99.2%Language:Shell 0.8%