GithubHelp home page GithubHelp logo

passuf / wunderhabit Goto Github PK

View Code? Open in Web Editor NEW
36.0 2.0 7.0 85 KB

Level up in Habitica by completing todo's in Wunderlist.

License: MIT License

Python 74.61% HTML 22.72% CSS 2.67%
wunderlist habitica django

wunderhabit's Introduction

WunderHabit

Level up in Habitica by completing todo's in Wunderlist.

Please note, this is neither an official Wunderlist nor an official Habitica project. Please use WunderHabit at your own risk!

Getting Started

WunderHabit is a simple Django application written in Python, which you can run on your own server.

If you are not familiar with Django, you might first head over to the Getting Started with Django docs.

Prerequisites

  • You need a Wunderlist account
  • Register your Wunderlist App to generate a Client ID and a Client Secret to interact with the Wunderlist API
  • In order to communicate with the Wunderlist API, you need a webserver and a trusted SSL certificate for your domain. There are free certificates available, just google for it.

Install the Requirements

Create a virtualenv:

virtualenv venv_dir

Activate the virtualenv:

source venv_dir/bin/activate

Install the requirements:

pip install -r requirements.txt

Run the Django app

Create a local settings file local_settings.py based on the example local_settings.example.py and configure the parameters according to your setup (do not share this file!):

cp wunderhabit/local_settings.example.py wunderhabit/local_settings.py

Prepare the database:

python manage.py migrate

Run the test server to verify the installation:

python manage.py runserver 127.0.0.1:8001

Deploy the app

There are several good guides on how to deploy a Django application. Personally, I like the one from Michal Karzynski or Digital Ocean.

Acknowledgements

The following projects or libraries helped a lot to build WunderHabit:

wunderhabit's People

Contributors

passuf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wunderhabit's Issues

Bug: Facebook and Google authentication delivers no email or name

[2016-01-27 17:54:40,905] [3933] [ERROR] Could not parse Habitica user with Facebook auth.
Traceback (most recent call last):
  File "wh_habitica/api.py", line 72, in get_user_details
    user_details[default.JSON_EMAIL] = auth_facebook[default.JSON_EMAIL]
KeyError: 'email'

[2016-01-27 17:54:40,906] [3933] [ERROR] Could not get user details: {'id': u'XYZ'}
Traceback (most recent call last):
  File "wh_habitica/forms.py", line 39, in clean
    self.instance.name = user_details[default.JSON_NAME]
KeyError: 'name'

Update: Same applies for accounts linked with Google.

Connect with Habitica. but, error.

Connect Wunderlist

Auth Wonderlist with Google+

Auth Habitica UserID & APIToken

Error

Something went wrong while loading Habitica user data. Please try again or contact the admin.

How to do ?

Test Version 3 of the API

We're looking for Habitica developers to try out the upcoming version 3 of the API. We are hoping that we will be ready to start testing within the next two weeks, but we're collecting testers now so that we can hit the ground running. Thanks very much for considering it, and feel free to let me know if you have any questions!

Sign Up!

Authentication error

Hi Passuf , i am trying to connect to Habitica and it throws up this error "Could not authenticate to Habitica. Please check the User ID and the API Token.". I have double checked the credentials, any suggestions. I am using the one hosted on https://wunderhabit.passuf.ch
screen shot 2016-01-06 at 7 49 05 pm

Feature Request: Connect a list folder in Wunderlist with one habit

I use a Projects folder to organize all my projects lists, lists in Projects folder are added when new project started, and removed when project ends, but Project folder is always there. Rather than connect a project list with a habit, it will be much easier to connect the Project folder with a habit.

Feature Request: Reward Completing Stared Tasks

Wunderlist Tasks can be starred to highlight them. A starred Task should give more Gold and Experience.
Starred Tasks have the following property set: "starred": true, so it should be easy to find them.

A possible solution would be to up-score the Habit twice if a Task is starred.

edit:
Probably it makes sense to first think about which operation yields how many up-scores.
e.g. Subtask -> 1 up-score, Task -> 2 up-scores, Starred Task -> 3 up-scores.
A nice solution would be to let the user decide about the mapping.

Feature request: sync Todos between Habitica and Wunderlist

Hey!
WunderHabit is what I'm looking for a long time.
Would it be possible to create connections beween habitica todos and wunderlist todos too?
I'm using some of the features of the wunderlist andorid app like speech to todo and it would be great if those todos could be automatically added to my habitica todos too.

Feature Request: Support Subtasks

Up-score habits if a Subtask of a Task in a connected List is completed.

The only relevant difference in the received payload is (compared to a completed Task):
"type": "subtask" instead of "type": "task"

Handle this case in the webhook view, then up-score the Habit. The question is, if the Habit should be up-scored by the same value as a Task, or, if Habitica allows, only e.g. half the value.

Ignore completed list items from other accounts (Shared List)

I am using a shared housekeeping list with multiple people. We share the list via Wunderlist and everyone gets assigned to a certain task.
However, if others complete that task, I will also get exp in Habitica.

It would be great to filter down the user that the task is assigned to if there is one or to filter based on the account that is logged in while marking the ask as complete - if that is possible.

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.