Code Monkey home page Code Monkey logo

ankihabitica's People

Contributors

71e6fd52 avatar aleadag avatar cdadar avatar eshapard avatar lujun9972 avatar masternayru avatar twilsonco avatar wesgarrison avatar zjosua 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  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  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  avatar  avatar  avatar

ankihabitica's Issues

Option to disable counting of points during review?

I find that the add-on has improved in how long it takes to count up, but there still is a second delay when pressing a review button.

I do know that this is difficult if not impossible to change due to the way that it works, but a what could work really well is to disable counting within the reviews, and count the points on profile CLOSE or OPEN as in the option to score the backlog upon anki starting up and syncing.

It could also be a good idea to have an option to have counting of points on the backlog on SYNC

Thanks for this great addon, but i've got a problem

since yesterday there was problem when I tried to refresh the anki avatar. the information is:

Unhandled exception in thread started by <bound method Habitica.save_avatar of <AnkiHabitica.habitica_class.Habitica object at 0x03825750>>

I tried to reinstall the add-on and anki, but it didn't work and that's really a little bothering. I wonder if you can give me some helpful information,

Thank you very much!

Interrupts and connection problems

Greetings.

First, let me thank you for creating this helpful Anki addon. It's fun.

Here is my feedback.

EDIT: I've installed version 2.0. The popup screen now has an icon and shows the user's current Habitica stats. With those changes, do you think a solution to the popup interruptions could be to make the addon run in its own separate window that stays open alongside the main window and does not interrupt user interaction with the quiz, in any way? That way, the user won't have to click to close popups, and connection problems would not disrupt the rhythm of or interaction with the quiz. If a connection cannot be made with the Habitica server, for whatever reason, it would just show a cannot connect to server message, icon, or whatever message is returned by the Habitica API.

The recent update, the one that shows the points gained throughout the progress of a quiz, is a very good idea. I like having the progress visible as it is. However, the popup box is a bit disruptive. It interrupts the flow, and eventually becomes annoying. Do you think it would be less disruptive to have aggregate view of the points gained appear to the right of or instead of the bar, as in +15 XP +3 G +0 M, with the labels being a different color from the values? And, would it then be simpler to send those points all at once, at the end of the deck or when one leaves a deck instead of intermittently?

Secondly, yesterday, Habitica went down for maintenance. During that time, after completing every 5 or so cards, there was an attempt to send data to the website. Of course, the API was inactive, so it couldn't work. That prevented me from continuing with the decks. I had remove AnkiHRPG from the addon folder to be able to continue. The fact that Habitica API being down affected users' ability to complete their decks without hindrance, in my opinion, suggests that the intermittent sending of points may not be the best approach. I have no idea what to do about that, though. Hoping you do.

Thanks for your time and efforts.

I got a error. Please help me!

Traceback (most recent call last):
File "G:\Documents\Anki\addons\Anki_HRPG.py", line 83, in setup
hrpg_decks = config['decks']
KeyError: 'decks'

and

Traceback (most recent call last):
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.webview", line 21, in link
File "G:\Documents\Anki\addons\play_button.py", line 60, in review_link_handler_wrapper
original_review_link_handler(reviewer, url)
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.reviewer", line 323, in _linkHandler
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/anki.hooks", line 58, in repl
File "G:\Documents\Anki\addons\Anki_HRPG.py", line 232, in card_answered
hrpg_realtime()
File "G:\Documents\Anki\addons\Anki_HRPG.py", line 158, in hrpg_realtime
get_user()
File "G:\Documents\Anki\addons\Anki_HRPG.py", line 122, in get_user
response = json.load(urllib2.urlopen(user_object))
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/urllib2", line 126, in urlopen
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/urllib2", line 406, in open
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/urllib2", line 519, in http_response
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/urllib2", line 444, in error
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/urllib2", line 378, in _call_chain
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/urllib2", line 527, in http_error_default
urllib2.HTTPError: HTTP Error 401: Unauthorized
Traceback (most recent call last):
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.webview", line 21, in link
File "G:\Documents\Anki\addons\play_button.py", line 60, in review_link_handler_wrapper
original_review_link_handler(reviewer, url)
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.reviewer", line 323, in _linkHandler
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/anki.hooks", line 58, in repl
File "G:\Documents\Anki\addons\Anki_HRPG.py", line 232, in card_answered
hrpg_realtime()
File "G:\Documents\Anki\addons\Anki_HRPG.py", line 158, in hrpg_realtime
get_user()
File "G:\Documents\Anki\addons\Anki_HRPG.py", line 122, in get_user
response = json.load(urllib2.urlopen(user_object))
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/urllib2", line 126, in urlopen
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/urllib2", line 406, in open
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/urllib2", line 519, in http_response
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/urllib2", line 444, in error
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/urllib2", line 378, in _call_chain
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/urllib2", line 527, in http_error_default
urllib2.HTTPError: HTTP Error 401: Unauthorized

Nothing happens

I give the addon my ID and Token. There is a message say that it will setup thing for me. But in HabitRPG there is no new task.

Problem with anki points

Hi,
I have a problem with scoring my Anki points. Every time i complete the progress bar i get the pop up which tells me i earned points. But it also says it couldn't score my Anki points on Habitica, followed with "Don't worry. I'll remember your points and try again later".
Restarting Anki or completing another progress bar doesn't help. Also my internet connection is working, and i have refreshed Habitica more than once. I hope you can help me, as this seems a very promising add on to me.

AnkiDroid Sync with Desktop/HabitPRG

Hello!

First of all, thank you for creating such a useful add-on!!

I was hoping you could tell me if there is a way to sync the AnkiDroid with the desktop application. I need the whiteboard feature as well as the pinch-zoom gesture, which is only available through the android app ( if you know of the add-on for desktop, I'm all ears!), so I'm forced to use my android tablet.

However, when I sync my tablet with my computer and then refresh HabitRPG I get no new points, despite going through an appreciable amount of cards on the android tablet.

Please let me know if this will be a feature for this add-on, or if you can offer any suggestions.

Thank you!!

bug report

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\Jason\AppData\Roaming\Anki2\addons\ankihabitica.py", line 708, in grab_profile
ah.settings.profile = str(aqt.mw.pm.name)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)

The add-on "AnkiHabitica" has the mistake.what should I do?

I have installed the add-on "AnkiHabitica" many times.But the problem still exists. There is something that we need to notice. I can use the Anki formally beside the software often stuck , even though it remind me there are something wrong . I need your help very much . I hope you can reply soon.
default

How to get awarded mana points

Hi team!
Thanks for this amazing Add-on. It took me a bit of time to make it works but this V2.0 version rocks.
Nonetheless, I'd like to know what to modify in the code to get awarded a bit of mana when you work with anki.
I don't know if it is already supposed to give mana but I always get +0.
Do you plan on implementing this in the future?

What else... could we get some drops also? I don't think I get any drops.

Thanks team, you rock people!

The add on don't work

Hi,
After configuration the following error appears:

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:\Users\rafael\Documents\Anki\addons\ankihabitica.py", line 621, in score_backlog
ah.habitica.grab_scorecounter('Anki Points')
File "C:\Users\rafael\Documents\Anki\addons\AnkiHabitica\habitica_class.py", line 332, in grab_scorecounter
if self.missing[habit]:
KeyError: 'Anki Points'

Errors

Hi there,

I installed AnkiHabitica the same way I installed other add-ons, however there is no "Anki Points" in my Habitica and an error window pops up every time I open Anki and while using.

"Unhandled exception in thread started by <bound method Habitica.save_avatar of <AnkiHabitica.habitica_class.Habitica object at 0x150b2e30>>
Traceback (most recent call last):
File "/Users/nantan/Library/Application Support/Anki2/addons/AnkiHabitica/habitica_class.py", line 89, in save_avatar
self.avatarfile = self.avatarfile.decode(sys.getfilesystemencoding())
File "encodings/utf_8.pyc", line 16, in decode
UnicodeEncodeError: 'ascii' codec can't encode characters in position 68-69: ordinal not in range(128)"

Can only handle ascii symbols in profile name

Not a big problem, as it is a small matter to change profile name to something that does not include special letters like æøå, but slightly annoying to those whom it may concern.

Error

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

Unhandled exception in thread started by <bound method Habitica.save_avatar of <AnkiHabitica.habitica_class.Habitica object at 0xee853f0>>
Traceback (most recent call last):
File "/Users/robert/Library/Application Support/Anki2/addons/AnkiHabitica/habitica_class.py", line 89, in save_avatar
self.avatarfile = self.avatarfile.decode(sys.getfilesystemencoding())
File "encodings/utf_8.pyc", line 16, in decode
UnicodeEncodeError: 'ascii' codec can't encode characters in position 68-69: ordinal not in range(128)

progress bar shows has wrong number of ticks on custom settings

I changed settings to have 30 points to score on Habitica and 2 points on 1 progress bar tick. So should be 15 ticks on progress bar. But it's not - I've got 18. Everything else work fine - still scoring after reaching 15 ticks (30 points). It's suprisingly annoying. Any chance to fix it quickly?

My settings:

############### YOU MAY EDIT THESE SETTINGS ###############
sched = 30 #score habitica when this number of points is reached
step = 2 #this is how many points each tick of the progress bar represents
tries_eq = 5 #this many wrong answers gives us one point
barcolor = '#603960' #progress bar highlight color
barbgcolor = '#BFBFBF' #progress bar background color
timeboxpoints = 1 #points earned for each 15 min 'timebox'
matured_eq = 2 #this many matured cards gives us one point
learned_eq = 2 #this many newly learned cards gives us one point
deckpoints = 0 #points earned for clearing a deck; Default = 0; WARNING: many decks = very slow!
show_mini_stats = True #Show Habitica HP, XP, and MP %s next to prog bar
show_popup = True #show a popup window when you score points.
check_db_on_profile_load = True #check Anki database on profile load to see if there are unsynced reviews and sync if there are
keep_log = False #log activity to file
############# END USER CONFIGURABLE SETTINGS #############

Great addon, but too slow

Everything is working great, but it is terribly slow between a card and another...
It takes about 1~2 seconds, and it is a lot compared to instant card change - the default without the addon.
I've set show_mini_stats, show_popup and keep_log to false, but I didn't noticed any performance improvement.

Please optimize the addon, I'd love continue using it, but the delay slows me down.

gives too many XP

I have 6 decks I review each day,
and all I have to do is my Anki sets, and I get enough XP to level up.

I think it should be less XP, or perhaps have the XP correlate to how many cards you did

Score backlog not setting new recounting reviews

Steps to reproduce:

  1. Perform reviews on another device and sync
  2. Open Anki 2.0 and sync
  3. Perform manual backlog sync with AnkiHabitica
  4. Sync, log out and back into profile and sync again
  5. Perform manual backlog again
    Expected behavior: No reviews will be found by the backlog sync and a dialog will say as much
    Actual behavior: The same number of points scored on Habitica in (3) will be scored again in (5).
    Note that if you perform (5) without first logging out/in (4) then no reviews will be found, as expected.

Simple fix may be to update the Habitica note at the end of score_backlog(). I'll give that a shot.

Plugin fails to run before user can create config file in newest version of Anki.

Hi. I just installed the newest Version of Anki and tried to install your plugin (which is pretty cool btw ;) ).
But it fails on line 36 it says, and due to this fail, the setup()-Method does not create an entry to set up the token and the user id.

Traceback (most recent call last):
File "aqt/addons.pyc", line 39, in loadAddons
File "/Users/verpfeilt/.Anki/addons/AnkiHRPG.py", line 36, in <module>
KeyError: 'token'

I fixed it just for me with just copying the .habitrpg-conf from one of my other computers to the addons-directory. But this is still a mayor issue to new users.
After the fix everything seems to work. Now I can also see the Setup-entry in the tools-menu. So all in all, the problem is that the user can not call the setup without a config file.

I have never written an addon for Anki, so I don't know what has changed in the new Version that it fails now, but maybe I'll find some time to look after it. Although, I bet you'll find the problem way faster.

Greetings,
Pfeil

Logging file access errors

I've gotten this a few times:

Traceback (most recent call last): File "C:\Users\vateacher\Documents\Anki\addons\AnkiHabitica\logging\handlers.py", line 78, in emit self.doRollover() File "C:\Users\vateacher\Documents\Anki\addons\AnkiHabitica\logging\handlers.py", line 144, in doRollover os.rename(self.baseFilename, dfn) WindowsError: [Error 32] The process cannot access the file because it is being used by another process Logged from file db_helper.py, line 119

I have the daily extra installed as well... could be specific to windows.

No change to Habatica account when Anki cards are done

Hi,

I downloaded the add-on so my progress in Anki shows up in Habatica, but after putting in my API User ID and API Token, nothing seems to have changed. Anki now shows a progress bar, but when it fills up, it says I've earned points and they can't be uploaded yet so it will "try again later." I manually made my desktop Anki sync to Anki Web and then I headed over to my Habatica account (on the Habatica website) and manually made it sync, too, but no points show up. It does have a habit made called "Anki Points" but it never increases or shows any indication that I've done any work in Anki.

Have I made a mistake in setting Anki/Habatica up?

Error when opening anki

I installed the addon as instructed but received this error upon opening anki in a pop-up box:

An error occurred in an add-on.
Please post on the add-on forum:
https://groups.google.com/forum/#!forum/anki-addons

Traceback (most recent call last):
File "aqt/addons.pyc", line 39, in loadAddons
File "/Users/rinnprang/Documents/Anki/addons/ankirpg.py", line 23, in
KeyError: 'token'

Crashing at anki launch

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\DELL\Documents\Anki\addons\Anki_HRPG.py", line 36, in
api_token = config['token']
KeyError: 'token'

There's a problem here...

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 "aqt\webview.py", line 152, in _linkHandler
File "aqt\deckbrowser.py", line 41, in _linkHandler
File "aqt\deckbrowser.py", line 71, in _selDeck
File "aqt\main.py", line 726, in onOverview
File "anki\hooks.py", line 55, in repl
File "aqt\main.py", line 388, in moveToState
File "aqt\main.py", line 413, in _overviewState
File "aqt\overview.py", line 24, in show
File "aqt\overview.py", line 28, in refresh
File "aqt\overview.py", line 98, in _renderPage
File "anki\hooks.py", line 61, in repl
File "C:\Users\Irene\Documents\Anki\addons\Suggest_Starting_Ease_for_the_decks_options_group.py", line 120, in myTable
gr = makeEaseWarnerStrings(self.mw)
File "C:\Users\Irene\Documents\Anki\addons\Suggest_Starting_Ease_for_the_decks_options_group.py", line 100, in makeEaseWarnerStrings
thisVsAvg = abs(avgGrEase - thisDeckEase)
TypeError: unsupported operand type(s) for -: 'NoneType' and 'float'

Does not work on mobile devices separately?

It's an innovative addon, but I've got some questions while using it.

The wiki says it can work on a mobile device. Does that mean you can just sync the score directly from AnkiMobile to Habitica or you just have to open the PC version of Anki and press "Store Habitica Backlog" after reviewing on a mobile device to finish the whole process? Thanks in advance.

Relying on name Python to point to Python2

It seems that you are using Python 2.7 libraries, but use python executable. On Arch Linux, Python 3.6 is the default one, so when I launch Anki with only AnkiHabitica installed I get

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 "/usr/share/anki/aqt/addons.py", line 47, in loadAddons
    __import__(file.replace(".py", ""))
  File "/home/*****/.local/share/Anki2/addons21/ankihabitica.py", line 8, in <module>
    import urllib2, os, sys, json, thread
ModuleNotFoundError: No module named 'urllib2'
Traceback (most recent call last):
  File "/usr/share/anki/aqt/addons.py", line 52, in loadAddons
    __import__(directory)
  File "/home/*****/.local/share/Anki2/addons21/AnkiHabitica/__init__.py", line 7, in <module>
    __import__(module[:-3], locals(), globals())
ModuleNotFoundError: No module named 'habitica_class'

Error on installation through Anki Web

I get the following error when I try to install the script:

Download failed: Traceback (most recent call last):
File "aqt/downloader.pyc", line 67, in run
File "httplib2/init.pyc", line 1597, in request
File "httplib2/init.pyc", line 1345, in _request
File "aqt/sync.pyc", line 467, in _conn_request
File "httplib2/init.pyc", line 1013, in connect
File "httplib2/init.pyc", line 80, in _ssl_wrap_socket
File "ssl.pyc", line 387, in wrap_socket
File "ssl.pyc", line 143, in init
File "ssl.pyc", line 305, in do_handshake
SSLError: [Errno 8] _ssl.c:507: EOF occurred in violation of protocol

I'm using Anki 2 on OSX 10.

Idea (and will this app work tomorrow...?)

Hey, just started using your app today, and it's unbelievably good. Was actually just coming on here to see if there's a way of getting anki ticket off as a daily on habitica, as anki is a bit of a daily activity, and it'd be great if that could come up on habtica! (in addition to points for reviews) Just an idea, don't know if you think it's any good!

In regards to a previous thread, I saw about downloading from github or ankiweb, I downloaded from ankiweb, does that mean i'm running a past version? And will the app stop working tomorrow or has the code been upgraded for the new API?

Cheers!

Offline points

Is there a way to turn of the real time sync? I would like to save all the points an upload them later, like it was before. I don't have constant internet access and it's impossible to study when the plugin has to check every time if i have an internet connection

Downloading issues.

Hello! I'm really excited about using this addon and think it is a fantastic idea!
However, using the download code that is currently on the Anki website I have run into a problem.
Everything seems to download just fine and there are no error messages. However, when I tell Anki my user ID and API number, it says that it was successful but then nothing happens.

I am AWFUL at most things computer so I am having a hard time figuring out how to fix this. Any help would be greatly appreciated! :)

No progbar?

The progress bar does not appear. Which is weird, since it did in the beginning and I did no configuration to the file or anything? Here is the error message:

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.webview", line 21, in link
  File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.overview", line 37, in _linkHandler
  File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.main", line 388, in moveToState
  File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.main", line 416, in _reviewState
  File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/anki.hooks", line 55, in repl
  File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.reviewer", line 54, in show
  File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/anki.hooks", line 61, in repl
  File "C:\Users\Anon\Documents\Anki\addons\_Timebox_tooltip.py", line 61, in maNextCard
    self._initWeb()
  File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.reviewer", line 187, in _initWeb
  File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.reviewer", line 595, in _bottomHTML
  File "C:\Users\Anon\Documents\Anki\addons\ankihabitica.py", line 755, in my_remaining
    if not ah.settings.hrpg_progbar == "":
AttributeError: class ah_settings has no attribute 'hrpg_progbar'

Can't not pull the Avatar

Every time when I start Anki, the error shows, the function is working well, but quite annoying.
macOS Sierra 10.12.4

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

Unhandled exception in thread started by <bound method Habitica.save_avatar of <AnkiHabitica.habitica_class.Habitica object at 0x9e18df0>>
Traceback (most recent call last):
File "/Users/kchen/Library/Application Support/Anki2/addons/AnkiHabitica/habitica_class.py", line 89, in save_avatar
self.avatarfile = self.avatarfile.decode(sys.getfilesystemencoding())
File "encodings/utf_8.pyc", line 16, in decode
UnicodeEncodeError: 'ascii' codec can't encode characters in position 67-68: ordinal not in range(128)

Error

When I install this add-ons and then restarted Anki,it called me

"一个插件发生了错误。
请把它报告在插件的论坛上:
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 0x04100070>> 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\zbttl\AppData\Roaming\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 "C:\Users\zbttl\AppData\Roaming\Anki2\addons\AnkiHabitica\habitica_class.py", line 332, in grab_scorecounter
if self.missing[habit]:
KeyError: 'Anki Points'"

and then I closed and restarted Anki again,it called me,

"发生了一个错误。 它可能是由一个无害的漏洞造成的,
或者你的记忆库可能有一个问题。
为了确认这不是你的记忆库导致的问题,请运行 工具 > 检查数据库.
如果这不能修复这个错误,请把下列信息复制到
漏洞报告窗口:
Unhandled exception in thread started by <bound method Habitica.save_avatar of <AnkiHabitica.habitica_class.Habitica object at 0x041FC170>>"

then I try to restart Anki many times.it always pop-up warnings same as the second warning,but the last
number ("0x041FC170") is different.
And I can still study deck by anki but it couldn't score my anki points on habitica.
I try to use my another computer but I get the same result.
All of my computers running on the Windows10.
I'm a Chinese college student and my English is bad,I hope you can understand.
Thank you.

Missing Progress Bar

Hi! Thanks for coming up with this Add-on!
It definitely helps make Anki less of a chore!

This is the first time I've used this and I'm wondering if there are conflicting Add-ons that doesn't let the Progress Bar appear above the Show Answer Button.

Also, I don't seem to get the pop up where I can see my Habitica Avatar along with the messages about my rewards/achievements.

Slowdown

Hello, every time I enter in a deck (after i installed this addon) it takes 20-30 seconds to load the questions; before it used to take 1 second, maybe 2 for bigger decks. What can I do?

Other addons i have:
image

Is there a way to make it run faster?

This add-on is great, but it causes a small (<1 second) lag every time I review a card. I have about 15-20 decks, but I'd prefer not to consolidate them just to make an add-on run faster. I have deckpoints set to zero. Is there another way to make this add-on run faster?

"show_popup = False" throws error when time comes for scoring

When I set "show_popup = False", and the AnkiHabitica add-on fills up its counter and scores a completed Habitica task during normal reviews, there is no pop-up and only an Anki error message. Unfortunately, I no longer have the error message saved, but it was something about "Couldn't find reference to self.hrpg_tooltip" or something like that.

But I do remember exactly how I fixed this myself by making these changes:

I changed the following section of habitica_class.py to use "tooltip" from aqt.utils instead of self.hrpg_tooltip:

#Show message box
        if ah.settings.show_popup:
            self.hrpg_showInfo(hrpgresponse)
        else:
            tooltip(_("Huzzah! You Scored Points!"), period=2500)

And then added this at the top of habitica_class.py and ankihabitica.py:

from aqt.utils import tooltip

Now it doesn't throw an error, and it shows a tiny little "anki tooltip" in the corner when it comes time for scoring like intended, and Habitica also records my task completions successfully. I'm literally not a programmer, so I'm sure you can find a better way to fix it.

P.S. 2500 milliseconds seems to be the best unobtrusive, readable, yet quick time setting for this popup.

P.S.S. I have a lot of add-ons, but I don't believe this is a conflict.

P.S.S.S. This happened both with the previous stable release, and with last night's nightly which I upgraded to.

Error report

Traceback (most recent call last):
File "aqt/main.pyc", line 629, in keyPressEvent
File "aqt/reviewer.pyc", line 313, in _keyHandler
File "aqt/reviewer.pyc", line 271, in _answerCard
File "anki/hooks.pyc", line 58, in repl
File "/Users/alw/Documents/Anki/addons/ankihabitica.py", line 545, in hrpg_realtime
if compare_score_to_db():
File "/Users/alw/Documents/Anki/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'

AnkiHabitica causing Anki to freeze and crash after sync

Hello! First off, thank you so much for this app. It really helps to motivate me to study. However, I have noticed recently (literally just now) that AnkiHabitica caused my Anki program to crash then Anki was unable to load my decks after syncing.

A better description: As I was studying I finished a progress bar in order to get a point. The Anki program stalled and eventually crashed. I had noticed that when I got a point Anki would hang for about a second than be fine. This hung for about 5 seconds. After Anki crashed, I tried to reopen it and noticed that after syncing (which was completed fine) I could no longer load my decks. I manually deleted the AnkiHabitica addon in the Anki2 folder and it fixed the issue.

I did not get any error message.

Keep getting Error

I followed every thing and even tried to manually install it but I keep getting the same error:

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/TABBYCAT/Documents/Anki/addons/ankihabitica.py", line 701, 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/TABBYCAT/Documents/Anki/addons/AnkiHabitica/habitica_class.py", line 332, in grab_scorecounter if self.missing[habit]: KeyError: 'Anki Points'

i also get a habit added in habitica that is called "anki points" and in the notes it has {"scorecount": 0, "sched": 12, "scoresincedate": 1476796680}

Please help!

How to make progress slower

First of all, thanks for making this amazing integration between Anki and Habitica! My question is about making progress 'slower'. I'm learning a language and I feel that I get exp (and the accompanying pop-up saying so) way too often as I progress through my cards. I've tried editing the settings (like editing the steps, and the number of points you get for each card etc) but it doesn't seem to help. What's the fix for just making the progress bar progressing more slowly?

Says not connected to internet

AnkiHabitica is not scoring my cards giving same error as it does when not connected to internet but on clicking score habitica points from menu it shows me that it has score points but even then nothing gets scored on Habitica .

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.