41 11
Sign in to rate

Anki Habitica (formerly Anki HRPG) for Anki 2.0

0.08MB. Updated 2019-06-06. Only supports Anki 2.0.
The author has shared 1 other item(s).

Description

Anki 2.0 add-on for use with Habitica. Anki 2.1 version is here: Anki Habitica for 2.1 Do not download the Anki 2.1 version from this page... there doesn't seem to be an option to delete just the 2.1 files, so I uploaded a 'plugin' that does nothing. Use the link above if you need the version for 2.1. Sorry! Update 2019-05-24: Github user 71e6fd52 has converted this for use with Anki 2.1 Update 2018-05-30: Habitica has not fixed their avatar export feature. This is a known bug that has been around for a long time; the problem is not with the addon. Because of this, I have added support for using a static image instead. Update 2017-08-13: Problems with new Habitica API should be fixed. (Problem was we couldn't score habit) Update 2017-02-15: Code changed to avoid slowdowns encountered by users with large numbers of decks. New in Version 2.0: Anki Habitica now supports reviews done on any device! Ankiweb, ankimobile, ankidroid, another computer... Anki Habitica will find those points. This addon creates a progress bar on the bottom of the review screen. As you answer questions, reach timeboxes, and clear decks, the progress bar advances. When it gets all the way, it scores an Anki Points habit at Habitica.com (which it will create). When the addon scores your habit on Habitica, a pop-up box tells you how many XP, HP, Mana, and Gold points you have/earned. It also tells you when you've leveled up and if you've received any items. For use with Habitica (formerly HabitRPG): http://habitica.com Inspired by: https://github.com/Pherr/HabitRPG-Anki-Addon Special thanks to: Tim Wilson for the database code. See https://github.com/eshapard/AnkiHRPG/wiki for a more detailed description. Please don't post bug reports here. I can't reply to you in this forum, I don't get messages when you've posted here, and I don't check this page. If you're having trouble with this add-on, post an issue on GitHub.

Download

The add-on author has not uploaded a version of this add-on compatible with Anki 2.1. Old add-ons for Anki 2.0 can be downloaded from the archive.

All Anki 2.1.x Add-Ons

Reviews

on 1606503494
good
on 1580664898
Amazing add-on. Returned using Habitica because of it, unfortunately the avatar don't show because of the Habitica itself
on 1559219617
Not working on 2.1 .
on 1559000998
Fabulous!! Working great for v2.1.12 (Windows X)
Been hoping this would be updated for well over a year, thanks so much!!
on 1558919877
Not working on 2.1.13 - macOS

An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.

When loading 'Anki Habitica formerly Anki HRPG':
Traceback (most recent call last):
File "aqt/addons.py", line 80, in loadAddons
File "/Users/------/Library/Application Support/Anki2/addons21/954979168/__init__.py", line 26, in <module>
from . import db_helper, habitica_class
File "/Users/-------/Library/Application Support/Anki2/addons21/954979168/db_helper.py", line 8, in <module>
from .ah_common import AnkiHabiticaCommon as ah
File "/Users/------/Library/Application Support/Anki2/addons21/954979168/ah_common.py", line 4, in <module>
import logging.handlers
ModuleNotFoundError: No module named 'logging.handlers'
on 1558640241
pls we need ver.2.1!!
求2.1 更新。。。
on 1558441273
Can you please update it fo anki 2.1? Please!
on 1554527543
2.1 ????????
on 1552265729
2.1 = invalid code
on 1549948277
Update for 2.1
on 1547632954
什么时候支持2.1啊...
on 1543485896
Please release latest vision for users of Anki2.1 ~
on 1533198795
Traceback (most recent call last):
File "aqt\progress.py", line 69, in handler
File "aqt\main.py", line 110, in setupProfile
File "aqt\main.py", line 244, in loadProfile
File "anki\hooks.py", line 26, in runHook
File "C:\Users\Adrina Adam\AppData\Roaming\Anki2\addons\ankihabitica.py", line 718, in grab_profile
if ah.settings.check_db_on_profile_load and ah.settings.configured and ah.habitica.grab_scorecounter('Anki Points') and compare_score_to_db():
File "C:\Users\Adrina Adam\AppData\Roaming\Anki2\addons\AnkiHabitica\habitica_class.py", line 336, in grab_scorecounter
if self.missing[habit]:
KeyError: 'Anki Points'

Anybody fixed it or know a way around this yet?
on 1523836800
一个插件发生了错误。
请把它报告在插件的论坛上:
https://anki.tenderapp.com/discussions/add-ons

Traceback (most recent call last):
File "aqt/progress.pyc", line 69, in handler
File "aqt/main.pyc", line 110, in setupProfile
File "aqt/main.pyc", line 244, in loadProfile
File "anki/hooks.pyc", line 26, in runHook
File "/Users/nju/Library/Application Support/Anki2/addons/ankihabitica.py", line 717, in grab_profile
if ah.settings.check_db_on_profile_load and ah.settings.configured and ah.habitica.grab_scorecounter('Anki Points') and compare_score_to_db():
File "/Users/nju/Library/Application Support/Anki2/addons/AnkiHabitica/habitica_class.py", line 332, in grab_scorecounter
if self.missing[habit]:
KeyError: 'Anki Points'
on 1521072000
Thank you
on 1518220800
lots of error and no avatar
on 1516924800
Awesome add-on, really gives you motivation to keep studying!

However, is there a way I can modify the code so that the score pop-up only appears at the end of my study session?
on 1516406400
Cool, works with my Habitica account and helps me earn XP and gold!
on 1514851200
Love the integration. Just searched for it to request a feature from the Habitica people and found this.

"Many thanks. Much wow." -- goldsteal
on 1509580800
traceback error, no avatar and no habitica status bar (they used to display norm

Traceback (most recent call last):
File "aqt\preferences.py", line 46, in reject
File "aqt\preferences.py", line 42, in accept
File "aqt\main.py", line 436, in reset
File "aqt\main.py", line 388, in moveToState
File "aqt\main.py", line 416, in _reviewState
File "aqt\reviewer.py", line 54, in show
File "anki\hooks.py", line 58, in repl
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons\ankihabitica.py", line 560, in hrpg_realtime
if compare_score_to_db():
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons\ankihabitica.py", line 349, in compare_score_to_db
ah.config[ah.settings.profile]['oldscore'] = ah.config[ah.settings.profile]['score'] # Capture old score
KeyError: 'score'
on 1508889600
一个插件发生了错误。
请把它报告在插件的论坛上:
https://anki.tenderapp.com/discussions/add-ons

Traceback (most recent call last):
File "aqt/progress.pyc", line 69, in handler
File "aqt/main.pyc", line 110, in setupProfile
File "aqt/main.pyc", line 244, in loadProfile
File "anki/hooks.pyc", line 26, in runHook
File "/Users/nju/Library/Application Support/Anki2/addons/ankihabitica.py", line 717, in grab_profile
if ah.settings.check_db_on_profile_load and ah.settings.configured and ah.habitica.grab_scorecounter('Anki Points') and compare_score_to_db():
File "/Users/nju/Library/Application Support/Anki2/addons/AnkiHabitica/habitica_class.py", line 332, in grab_scorecounter
if self.missing[habit]:
KeyError: 'Anki Points'
on 1508544000
一个插件发生了错误。

on 1508112000
on 1504483200
on 1499817600
on 1490227200
on 1487548800
on 1486598400
on 1484179200
Great addon

It works great! .. it would be nice if there is a party on habitica for Anki users :)
on 1483833600
error

Unhandled exception in thread started by <bound method Habitica.save_avatar of <AnkiHabitica.habitica_class.Habitica object at 0x03D09E70>>
on 1482364800
Works Great!

Really well made add on, appreciate how it shows my progress as a bar and how it shows my current avatar when it adds points :) But I really love how well it syncs, and how if there's no internet connection it saves the points properly and syncs them later. Love this add on and strongly recommend!
on 1478736000
error

一个插件发生了错误。
请把它报告在插件的论坛上:
https://anki.tenderapp.com/discussions/add-ons

Traceback (most recent call last):
Unhandled exception in thread started by <bound method Habitica.save_avatar of <AnkiHabitica.habitica_class.Habitica object at 0x0469A490>>
File "aqt\progress.py", line 69, in handler
File "aqt\main.py", line 110, in setupProfile
File "aqt\main.py", line 244, in loadProfile
File "anki\hooks.py", line 26, in runHook
File "C:\Users\dell\Documents\Anki\addons\ankihabitica.py", line 702, in grab_profile
if ah.settings.check_db_on_profile_load and ah.settings.configured and ah.habitica.grab_scorecounter('Anki Points') and compare_score_to_db():
File "C:\Users\dell\Documents\Anki\addons\AnkiHabitica\habitica_class.py", line 332, in grab_scorecounter
if self.missing[habit]:
KeyError: 'Anki Points'
on 1477094400
Great add-on

Great add-on, it however makes my Anki unusably slow (I'm on a gigabit connection so it can't be because of internet speed).

In between reviews, and when answering a particular question, there is a long pause that basically breaks the review flow. Any ideas on how to speed this up? I'm talking 5-7 seconds here.
on 1475971200
on 1475452800
on 1471046400
on 1467417600
Works as advertised

Great add-on. Does what it's supposed to, and really beefs up your Habitica experience! If the rate of experience growth is too high for you, you can modify the add-on easily.

With version 2 there's pretty much nothing else you could ask for!
on 1467244800
Great!

It's great, but is there some way to avoid the information windows to pop up while you're studying? I would preffer to see it when I finish studying :S
on 1467158400
on 1466035200
Great add on!

Fantastic add on, well designed and works well. Upgrade coming in july too apparently which is exciting, and looking through the source on github it seems to be a big one!

My one suggestion would be to tick off anki as a to do list item in habatica (as well as points for a habit) because anki is a daily activity. It'd just need to do this once per anki 'session' to tick off having done it in habatica.

Other than that great addon, very useful!
on 1461715200
on 1461110400
could not install

An error occurred in an add-on.
Please post on the add-on forum:
https://anki.tenderapp.com/discussions/add-ons

Traceback (most recent call last):
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.addons", line 41, in loadAddons
File "c:\pyi\iu.py", line 436, in importHook
File "c:\pyi\iu.py", line 521, in doimport
File "C:\Users\Nery\Documents\Anki\addons\ankihrpg.py", line 36, in <module>
api_token = config['token']
KeyError: 'token'
Traceback (most recent call last):
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.addons", line 41, in loadAddons
File "c:\pyi\iu.py", line 436, in importHook
File "c:\pyi\iu.py", line 521, in doimport
File "C:\Users\Nery\Documents\Anki\addons\Anki_HRPG.py", line 36, in <module>
api_token = config['token']
KeyError: 'token'
on 1456358400
on 1454716800
on 1453507200
Great

This addon is great. It's maker is active on github if you ever have any problems. :)
on 1452556800
on 1449532800
on 1444953600
on 1440720000
on 1436227200
on 1433462400
on 1428019200