WaniKani + Rainmeter (Windows)

Windows users have been a little left out of all the recent API fun. I myself don’t use Windows, but since it’s クリスマス today I figured I would download a trial of Windows 8 and port my WaniKani + GeekTool desktop widget to Windows.



This version looks pretty much identical to the Mac version even though it was rewritten from scratch. The most noticeable difference is that it uses Segoe UI instead of Helvetica Neue as default typeface. Also, it relies on Rainmeter instead of GeekTool. Rainmeter is in most ways vastly superior to GeekTool, and makes the installation process much simpler for the end user.

Here are the steps to follow:
1. Download and install Rainmeter
2. Download and install my Rainmeter skin: http://cl.ly/0u0L1R3Y001l
3. Right click the Rainmeter icon on the Taskbar and select “WaniKani” -> "Edit Skin"
4. Go to http://www.wanikani.com/account, copy your API key, and paste it on line 13 of WaniKani.ini after “APIKey=”. Save the edited file.
5. Right click the Rainmeter icon on the Taskbar and select “Refresh all” (or wait 5 minutes for the skin to refresh automatically).
6. Move the skin to where you would like it to be by clicking and dragging it (but make sure to click directly on the text or icons, or it won’t move).

Optionally, you can customise many things, such as the colour of the text and icons, by making very simple edits to the code in WaniKani.ini. Most of what you might want to change is located in the top 30 lines of the file, and I’ve added comments to make things easier. If you have any questions, feel free to ask me. A good website to find nice colours and their RGB values is http://www.colourlovers.com/.

The icons I included are from the Iconic icon set and are licensed under a CC-BY-SA 3.0 licence. Here’s a link to the author’s website: http://somerandomdude.com/work/iconic/.

Hope you enjoy! (=^ェ^=)

Edit: Posted a slightly improved version which displays the current time instead of the time obtained from the API request  for “Next Review” when the next review is available now.  Since the skin only fetches new data every 5 minutes (so as not to overwhelm the WaniKani servers), this meant that the Next Review time displayed was in the past four minutes out of five when you had reviews available now.

Edit 2: If you decide to install Rainmeter in portable mode, check out Psycoder’s extra steps (third post on first page).

Edit 3: If you want to display a 24h clock, replace the timeConvert.lua file in  C:\Users\Your_Username\Documents\Rainmeter\Skins\WaniKani\ with this one: http://cl.ly/code/2l0Y0Q321Y0m/timeConvert.lua

3 Likes

Just got it, seems to be working like a charm, thanks!

Working great.  Thanks!

A small addendum to your instructions…

If you install Rainmeter in portable mode (as opposed to the standard install mode) there are some slight differences:
2.5) To install a new skin, open the Rainmeter install directory and run SkinInstaller.exe to find and install the new skin (since the rmskin type will not be registered by any program)
3) The skin will not be installed in the users directory but rather as a subfolder to the Rainmeter install directory
3.5) If you need a text editor, you should get Notepad++ (ok, this is not really necessary for the install but it is a great text editor)

ありがとうございます!
Works Fantastic!

I’m actually working on a Windows 8 Metro app for WaniKani. I should have a release in a week or so.

Oh boy! You’ve saved me the effort of making this, if I could have even. I hate Regexp.

Here’s what it can look like if you already have a system set up, and yes, it was very easy to modify how it looked:


Wonderful, thank you!

Many thanks

Psycoder said... Working great.  Thanks!

A small addendum to your instructions...

If you install Rainmeter in portable mode (as opposed to the standard install mode) there are some slight differences:
2.5) To install a new skin, open the Rainmeter install directory and run SkinInstaller.exe to find and install the new skin (since the rmskin type will not be registered by any program)
3) The skin will not be installed in the users directory but rather as a subfolder to the Rainmeter install directory
3.5) If you need a text editor, you should get Notepad++ (ok, this is not really necessary for the install but it is a great text editor)
Thanks for the additional instructions! I personally like Sublime Text more than Notepad++ (and I usually work on mac or Linux), but it isn't free (nor "free") software. The trial never expires though, it just asks you to consider buying it every once in a while.  If you use it a lot I'd definitely recommend buying it just to support the developer, though. It really is a fantastic piece of software.


scottwuzhear said...I'm actually working on a Windows 8 Metro app for WaniKani. I should have a release in a week or so.
I look forward to seeing that! I don't know C# or C++, so that wasn't really an option. I'd never written anything in Lua either, but it's more similar to the languages I'm used to working with.

 
finnra said... Oh boy! You've saved me the effort of making this, if I could have even. I hate Regexp.

Here's what it can look like if you already have a system set up, and yes, it was very easy to modify how it looked:

xkcd.com/208/
Rainmeter is all about customisation. Post your desktops, I want to see what you come up with!

How can I change the time to 24h clock?

EDIT: LOL, nvm I’m blind. I found the lua file where you do the time conversion and just changed the format.

InfiniteShift said... How can I change the time to 24h clock?

EDIT: LOL, nvm I'm blind. I found the lua file where you do the time conversion and just changed the format.
Glad you found it. (^▽^)   I'm going to post an alternative version of the lua script to make it easier for others.

Thanks! Finally a good reason to start playing with rainmaker, and it was very easy to setup with your small tutorial :slight_smile:
Hopefully it helps me to keep on track with the reviews :slight_smile:

Works like a charm! Thanks!

Edit: Here’s a photo. Sorry to copy you bk-210, but I just fell in love with your desktop. :slight_smile:

Awww, what a nice guy you are! (: 
Makin’ this for us Windows users, even though you don’t even use Windows. 
WK is full of such awesome people.

Anyway, thanks for making and sharing! ^^

Thank you :slight_smile: I customised mine, not sure if you can see it though.



Suzziie said... Thank you :) I customised mine, not sure if you can see it though.




 That looks lovely! It’s great to see how people are using this; I love seeing customisations.

I really like that picture of ミク。The drawing style reminds me of Clamp, though the colouring is quite different (but also very enchanting).
bk-210 said...  That looks lovely! It's great to see how people are using this; I love seeing customisations.

I really like that picture of ミク。The drawing style reminds me of Clamp, though the colouring is quite different (but also very enchanting).
 Thanks :) Yeah the background is beautiful. I got it from Desktop Nexus, anyone who wants the link can click here.

Thanks for putting this together! I’ve just installed it on my new laptop without any hitches…


Hmm, my lessons and reviews stopped showing up…

This is awesome! ありがとうございます!