[Userscript] Wanikani Heatmap

Does anyone know why I am able to see the heatmap in the sidebar but not the physical heatmap itself? For context, I recently just got a new PC and am installing all of my old scripts. I read some old comments and tried deleting cookies but sadly it hasn’t worked for me.

Hey I have some issues! I try to install the heat map since months, but it is not working.

I installed both “Wani Kani Heatmapt” and “Wanikani Open Framenetwork” (Open Framenetwork is in the first place).

In WaniKani I can only see the settings for the Heat Map, but the Heat Map itself not. What did I do wrong?

1 Like

and @DumserKarl

See this reply to a post of mine saying I had the same issue some months ago. The gist is that it should not show up until you do reviews. Additionally, please keep in mind that because the GetAllReviews API endpoint was taken down several months ago, Heatmap cannot fetch your review history; it will only show you reviews going forward and only on the browser you do those reviews from.

6 Likes

Thank you that solved my problem! Have a great day!

How do you transfer heatmap streaks to a different pc?

To transfer reviews you can follow these steps

  1. Find the browser console (F12 → Console)
  2. Export review cache to a string by inputting JSON.stringify(await review_cache.get_reviews())
    a. Copy the string, including enclosing quotes (just hit copy)
  3. Transfer to new device by your preferred method
  4. Insert into review cache review_cache.insert(JSON.parse(<string>))
5 Likes

Is there a way to add a date range in this field instead of a single date? I unfortunately lost my original cache and my 3 year streak with it, but if I can add them manually based on an average of ~50 reviews a day I figure that’s good enough. A console command would work too, if doing it from the Userscript isn’t possible.

If you enter an appropriate time per review you can register reviews for multiple data. For example 1728 seconds per review should give you 50 reviews per day, then you just need to multiply the number of days by 50 and register that number of reviews

2 Likes

Oh, that worked, thanks! The heatmap looks a bit sus but at least I got my 1030 day streak back

1 Like

I found out why my review data is disappearing every so often. My tampermonkey checks for updates of all my userscripts every day. Whenever the Wanikani Open Framework updates, this happens. My lesson updates are intact so maybe it’s something to do with Heatmap’s code? If that’s the case, I might be able to restore all my data !

The lesson history can still be fetched from Wanikani, but reviews cannot. There is no saving your reviews once they are gone. Also WKOF updating shouldn’t clear your review cache

1 Like

hello, I’m getting this error recently I tried updating and I only enabled heatmap but still the heatmap doesnt show up?

1 Like

Just do a review and it should show up when you refresh the page

1 Like

Holy mother was that , this easy ?! :smiley: thank you very much I’ve been trying to figure it out almost for an hour. :sweat_smile: :see_no_evil:

1 Like

Sorry about that. This wasn’t an issue before they removed access to review history, since it would just fetch any past reviews, but since they did it’s been causing a lot of issues. I should just fix it so that you don’t need to do any reviews for it to show up

3 Likes

No worries as long as it works I don’t care :grin: :kissing:

1 Like

Registering extra reviews in the settings panel isn’t working correctly in a European timezone - it adds the reviews to the day before the one you select. It’s not too big of an issue but it would be great if you could either add a message in that section explaining that or take a look at how you handle timezones at some point! :pray: :smiley:

It should already be using your local timezone. Are you using Firefox with fingerprint resistance enabled? I know that can have the effect of hiding your timezone

Hmm, could be because I’m using Brave? Although even with the Brave shields/anti-fingerprinting turned off it still doesn’t work… Oh well, if it should be working it can just remain a mystery as I now know to select the day after I want :laughing:

2 Likes

Seems to be working fine for me in Brave, in EST. If anything I would expect it to default to UTC