trgkanki / remaining_time Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU Affero General Public License v3.0
License: GNU Affero General Public License v3.0
Hello,
I am enjoying the addon so far. I have a question about the colors displayed on the timeline. From the add-on page (https://ankiweb.net/shared/info/1508357010), I know that blue is correct and red is again. But my timeline has a lot of green. I'm wondering what that color means. Here is a screenshot for reference:
I am using the Auto Ease Factor addon as well which makes each card only have "Pass" or "Fail" as an option. Not sure if this addon might be affecting the timeline.
Any information would be appreciated. Thanks!
Retention rate on the bar (correct ratio)
Thanks for your great plugin!
I like my Anki clean, but the information your addon gives is important to me, so an option to only show the progress bar, when hovering over it's designated place would be really cool for me.
A clear and concise description of what the bug is.
Steps to reproduce the behavior:
A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.
Add any other context about the problem here.
The progress bar does not go to the bottom of the screen in ankidroid, despite it being configured to do so. It does go to bottom in Windows but does not do so in AnkiDroid which is linked to the same profile.
In the config file for this addon in the Addon Menu in Anki for Windows: set the
"showAtBottom"
property totrue
Sync the profile in Windows
Sync the profile in AnkiDroid
Open reviewer in AnkiDroid
It should have displayed at the bottom of the screen in AnkiDroid and Windows
Anki For windows 2.1.33
AnkiDroid 2.13.3
Addon Fully Updated
I have tried check media, and syncing media.
I have tried deleting the addon, then deleting the remainingtime.js script and config js files from the media folder from both devices, and reinstalling the addon on the pc and immediately without restarting anki, changing the settings to show at bottom, and only then restarting anki on pc, and then syncing to AnkiDroid to see if the problem persists, and it does.
error loading
First congratulations on the extension, I liked it a lot.
I use the extension on another computer with the same version of ANKI, but in this case here the following message appears:
I am a novice user at ANKI, is this an error that can be corrected?
Thank you very much in advance.
Ao carregar 'Remaining time for Anki 21 ':
Traceback (most recent call last):
File "aqt\addons.py", line 60, in loadAddons
File "C:\Users\Mndows 10\AppData\Roaming
\Anki2\addon521\1508357010_init_.py", line 24, in
from .utils import openChangelog
File "C:\Users\Windows 10\AppData\Roaming
\Anki2\addon521\1508357010\utils\openChangelog.py", line 27, in
from anki.utils import noBundledLibs
ImportError: cannot import name 'noBundIedLibs'
Since the add-on was update, the progress bar suddenly disappeared. I tried deleting and installing the add-on multiple times but the progress bar is still nowhere to be found. I really tried looking for the problem myself but can't seem to
Love the progress bar with different colors based on button selected. I find the text displaying the remaining time distracting, though. Would it be possible to make the appearance of the text customized? Or perhaps hide the text?
The remaining time bar shows up on my phone but but does not show up on my eReader tablet also on android. How would I go about troubleshooting why? Thanks
I frequently step away from anki in the middle of mammoth multi-hour review sessions, and when I come back my remaining time is totally messed up and never really corrects.
It would be great to have a config item to enable ignoring times greater than x seconds (e.g. 60) in computing CPM and remaining time. It makes sense for this to be optional as perhaps this issue doesn't affect most people.
Possibly you could use the max time set by the deck instead, but I feel like this may be somewhat more cumbersome to implement.
Option to stop counting time when not reviewing cards
Let's say I review 50 out of 100 cards in 10 minutes. The addon correctly calculates 5cards/min and says I have an estimated 5 minutes remaining to finish the last 50 cards. But if I go back to the browser screen to take a break, when I begin to study again, the addon accounts for the time I was gone. This artificially lowers the cards/min and makes the ETA not accurate. This could easily be avoided if the app only counted time while you're actually reviewing cards. I believe this is how the "More Decks Stats and Time Left" add-on works. But I want to love your app so much more because it updates dynamically and I can see it while I'm reviewing.
I have deleted the add-on, then re-downloaded, however when I go to do the decks, the progress bar will not show up. I have tried disabling and re-enabling but it still will not show up. This started when I changed to dark mode, and I went back to light mode to get it back but it still will not show. A couple of days ago an alert showed up saying I needed to restart my anki while holding down the shift key to disable this add on because it wasn't working properly and that's the only other thing related to this I can think of.
Steps to reproduce the behavior:
If I click a deck, the progress bar will not show up.
I expected the progress bar to be there.
Add any other context about the problem here.
A clear and concise description of what the bug is.: The add-on doesn't show up on any of my decks, tried configuring it by changing settings to 'true' but it has not shown any results so I restored it to default. (Please don't judge that I changed it, I am not a coder, I just want to try and make this add-on work.)
It doesn't work on my Anki. :(
Steps to reproduce the behavior:
I expected that there would be an estimated time at the top and a progress bar but there is known in BOTH day and night mode.
Nothing appeared. (it is as if i did not install the add-on at all.)
maybe it's because my OS is too old. But I hope it doesn't hinder it from working or that there may be a solution to it. I am not familiar as how filing an issue works. This is my first time, but i hope I have provided enough info for it to be counted as an issue. Thank you.
Kind the screenshot here: (No progress bar or elapsed time etc)
This addon is great, and every time you update it I manually add this feature myself, but with the most recent update, everything moved around and I can't easily find the python file to modify. Essentially, it shows how fast I am going through cards by showing a cards/minute. I am sure I could figure it out and keep doing what I've been doing, maybe when I have time. This one change made my cards/minute speed increase substantially because I can have a speed goal and know if I'm going slow. ETA kind of serves this purpose to keep me motivated and going fast, but I still can't tell if I'm going slow without the cards/minute statistic. I think it would be more valuable than ETA, because ETA is almost the same as remaining time.
Here is the code I added for the previous version (before the update)
message = "Elapsed %s, Remaining %s, Total %s, CPM %s" % (
t2s(elapsedTime),
t2s(remainingTime),
t2s(elapsedTime + remainingTime),
round(estimator.getSlope()*60,2)
)
A clear and concise description of any alternative solutions or features you've considered.
Add any other context or screenshots about the feature request here.
Hi, thank you for the extension, it motivates me a lot.
When I'm in "decks" tab I want an option to not count the time. What happens is that when I leave to do something else and I come back there's a big red bar in the screen and I need to reset the counter to see the bar fitting closely to what I've done.
The add-on fails to load on Anki 2.1.15 using Windows 7 on my laptop
A clear and concise description of what the bug is.
Steps to reproduce the behavior:
A clear and concise description of what you expected to happen.
The add-on to work
Add-on did not load
If applicable, add screenshots to help explain your problem.
Add any other context about the problem here.
Hi,
First of all, thanks for creating such an amazing addon.
I would love if this addon on had the option to set a goal, say 100 reviews, and the progress bar fill up as I complete reviews. The idea being that I could set aside time to do 100 cards here, 100 cards there, to break up large amounts of reviews.
I am not familiar with TypeScript so I am asking here for the feature request. I have tried going through the source code myself to see if it would be an easy change of a variable or two but unfortunately it is way over my head.
Let me know if you need any clarification or if there is any way I can help!
Thanks!
Hi, I think I have a problem with colors. Where can I change them?
When a card is flagged, we currently cannot see whether the card is flagged during review because the remaining_time bar (when at the top) blocks the flag. Previous versions of remaining_time did not hide the flag (this was around Jan. or Feb. 2020 and in Anki 2.1.20).
Please allow card flags to be visible again and compatible with remaining_time. Thank you for a useful addon.
Since this program only needs SVG and HTML support to work correctly, I think that the addon may be injected directly into card formats. When the addon is installed, the addon will inject its code to every exiting model's HTML & CSS.
Problem
window.localStorage
is supported in both platforms, as I think that could be persistent between review sessions.This would make everything insanely useful.
When I am reviewing and I press the space bar for 'good', the progress bar advances as normal. However, when I press '1' on my keyboard for 'again', the progress bar advances the same as when I press good. It doesn't make a red section like it should, it just advances another blue section.
Also, when I press sync while reviewing cards it treats it as though I pressed 'again' and advances a red partition on the bar.
Also, when I first open the deck, if I answer 'good' on the first card, nothing happens at all. However, every card I answer 'good' on after the first card works as expected.
Steps to reproduce the behavior:
I expect the bar to advance with a red section when I press 'again', and nothing to happen when I press sync while in review.
If applicable, add screenshots to help explain your problem.
I was simply looking for a progress bar add on that replaced glutanimates since he hasn't been keeping up with fixing his add on. He opened up a Patreon and a lot of people donated to him and yet he let 'Progress bar' go to shit. I'm hoping someone can eventually take the torch and make a reliable progress bar add on that works as expected.
As you can see in this error report I filed initially in webview debugger, when reviewing and clicking on "inspect" using the right mouse click I instantly get the following yellow error in the console : DevTools failed to parse SourceMap: http://127.0.0.1:40511/main.min.js.map
I think this error stops the js from correctly working and stops me from accessing js objects.
Steps to reproduce the behavior:
No error and unhindered javascript
An yellow error appears and js seems unusable, I can't use document.getElementsById for example.
I was able to workaround this by removing the line of the template that is loading the code : <!-- # 2eecab49dc1f9618 --><script src="_remainingtime.min.js"></script><!-- / 2eecab49dc1f9618 -->
and disabling the addon.
If I press the edit button while reviewing, this shows up as a huge red bar on the timeline/bar. Even if the editing only took seconds. Somehow, the addon registers it as a lapsed card that took a lot of time.
Steps to reproduce the behavior:
Editing a card shouldn't affect the bar's progress behavior!
Editing a card messes up the timeline.
A clear and concise description of what the bug is.
Steps to reproduce the behavior:
the bar shoud always work.
the bar works only with the first deck
Add any other context about the problem here.
Here are 3 screenshots, the current deck is shown at the bottom. Only the first is working.
As a university student who has large decks (some of which take several days, if not weeks to finish), it's always a bit frustrating that this otherwise excellent add-on doesn't show remaining times greater than 1 day.
Any help in this matter would be enormously appreciated.
Updated to newest version, bar isn't showing anymore.
Steps to reproduce the behavior:
A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.
Add any other context about the problem here.
I installed Pokemanki, and the timer is just gone now
A clear and concise description of what the bug is.
Steps to reproduce the behavior:
A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.
Add any other context about the problem here.
Hint hotkeys is an addon used with with the anking medical school anki deck
[https://ankiweb.net/shared/info/1844908621]
H reveals one hint and G reveals all hints.
Unfortunately the hotkey to reset progress/remaining time is also H on your addon.
Could you add a way to change the hotkey for resetting the remaining time?
While rating cards, the progress bar shows only shades of green. I have no idea how to change the colors anymore since the new update.
Steps to reproduce the behavior:
Blue for Good and Red for Again as it did before.
Additionally, where is the file where you can modify the colors for the progress bar?
A clear and concise description of what the bug is.
Error when first restarting Anki after installing this add-on
Steps to reproduce the behavior:
Install, restart Anki
No bugs
Add any other context about the problem here.
Review bar never fully completes, leaving a margin at the end
I have experimented this with every deck, regardless of settings, Anki version and all other add-ons disabled
Bar completes at the end of deck sequence
Add any other context about the problem here.
Hello, the add-on looks great but some part doesn't work on my end. The remaining time and total time are displayed as "> day", only the elapsed time works fine.
Current behavior: "Elapsed Xmin, Remaining > day, Total > day [⥻]"
Expected behavior: "Elapsed Xmin, Remaining Xmin, Total Xmin [⥻]"
Is there something I can do to fix it?
I use Anki 2.1.15, I can't really upgrade since higher version broke some add-ons and latex. If I'm the only one with this bug then it's fine to ignore, I'll find an alternative, I just wanted to let you know a possible bug.
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.35 (84dcaa86) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.15.7
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-12-11 23:25:53
Add-ons possibly involved: Remaining time for Anki 21
Caught exception:
Traceback (most recent call last):
File "aqt/webview.py", line 37, in cmd
File "aqt/webview.py", line 123, in _onCmd
File "aqt/webview.py", line 541, in _onBridgeCmd
File "aqt/gui_hooks.py", line 2959, in call
File "/Users/rmi1/Library/Application Support/Anki2/addons21/1508357010/utils/JSCallable.py", line 29, in _onBridgeMessage
ret = func(*argList)
File "/Users/rmi1/Library/Application Support/Anki2/addons21/1508357010/jsapi/getCurrentCardId.py", line 8, in getCurrentCardId
return reviewer.card.id
AttributeError: 'NoneType' object has no attribute 'id'
ETA is showing one hour after the actual time related to remaining time. i.e. 2 minutes remaining and ETA is 1h2m from now.
In any way I could clarify this issue, just say.
Thank you in advance.
dark mode is not working, so it is currently in light mode
Steps to reproduce the behavior:
dark mode "effect" would stay on even after update.
dark mode "effect" is off.
Add any other context about the problem here.
You press 'again' on a card while reviewing, it's logged as 'good'. Always.
Steps to reproduce the behavior:
Again cards should show up red for example, hard cards a different shade, etc..
Again cards are reported as good.
Here are the logs: https://pastebin.com/HWbzPxX0
Here's the rendered HTML: https://pastebin.com/QfPtYtw3
I do not understand how to use the "BarCSS" function. I downloaded the ankiwebinspector like you suggested and I think I found the relevant code to be
.rt-container {
color: #000;
font-family: sans-serif;
font-size: 0.8rem;
height: 1rem;
left: 0;
line-height: 1rem;
position: fixed;
right: 0;
z-index: 100;
/* stylelint-disable-next-line selector-class-pattern */
}
I copy/pasted this into a text editor, but then what do I actually do with the new code? Say I change "sans-serif" to "monospace", what precisely do I do to implement that change? Or am I just completely off?
I apologize if this seems like a dumb question, I haven't the slightest idea how computer code works. 😥 If anyone could just list a quick step-by-step as if written for someone with 0 computer knowledge, I would appreciate it!
Nice addon, how can I change the font size of the text on the taskbar? I tried "font-size: 17px" in the css field you have in config but nothing happens. Sorry if what I said is stupid, I have very little programming experience. thanks a lot!
i don't find it's estimation of remaining time accurate or useful and want a simple progress bar showing how many cards i have done as a proportion of due cards
add an option to disable the "estimated time remaining" functions and just show a straight progress bar
After installing latest remaining_time update, anki does not load with it enabled
Steps to reproduce the behavior:
I expected anki to load normally as in the past
Anki never loads; I disabled all other add-on's and still get this error. Anki loads normally while holding shift to bypass loading add-ons.
If I leave a card on the screen while I'm doing something, I wouldn't like the card's review time to be used in the prediction of how much time is left for the cards remaining. Anki already uses a default maximum 60 seconds recorded review time for this reason.
Apologies if this is already implemented. I didn't believe it was since it's possible for a single card to take up a large chunk of the time elapsed bar.
The remaining time bar is not visible in the alternative updated version of Anki 2.1.35, which works for Mac OS X 10.10+. (I did not update the Mac OS X version, since my MacBook is quite old and new updates make the software very slow.) Since I updated Anki on the newest alternative version, the remaining time bar is not visible any more. However, on the phone the plug in works perfectly even now.
Steps to reproduce the behavior:
I would love to be able to see the bar again.
If applicable, add screenshots to help explain your problem.
Add any other context about the problem here.
Hi,
I am using a script in my template that, if triggered too late after the card loaded impedes my learning.
I was wondering why my template was so slow on ankidroid and finally understood today that the cause was that it waited for your addon to finish running.
I found a solution that worked perfectly for me : putting the line in the template that loads your addon as the last line instead of the first.
I think you should consider making this permanent.
Congrats for this addon!
edit : similarly, I find it really slows down the loading of image occlusions.
edit : the slowdown is so dramatic that I decided to to disable your addon on mobile for the time being. I looked at the code and don't really understand how the substitution is made so I can't do a PR for this, sorry :/
when styling a link in css it will effect this addon. It's not a major concern of mine as its easy to work around but I figured might as well report it.
example css:
a{ background-color: #EEEEEE;
padding: 8px 20px;
text-decoration:none;
font-weight:bold;
border-radius:5px;
cursor:pointer;
color: black!important; }
Updated the addon while changing to 2.1.29 from 2.1.6 and the text size of the addon is significantly larger than it was before.
Any way to decrease the size?
Would love the option to toggle the bar to not slide around based on time, IE based on % completion and all the colors etc. stays the same (sort of like progress bar but with more colors).
I always get frustrated on days where I start my reviews early then have an activity for a few hours and the progress bar projections get a little weird as it brings the projected time way up, this is fixable with just resetting the bar but obviously I liked like to avoid that so I can have a idea of how far I am in the day in X amount of time
Second feature is just a config option to add the count of new cards completed that day, IE. New->learning transition not learning->young. I like to do my new cards in batches of about 50-100 but sometimes there is a random uneven number of new cards for the day so the math gets unfortunate.
Other config options that could be cool (no clue how difficult it would be to add I can't code): Just an option for % of cards complete, Time spent on new/young/mature/learning cards.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.