Hello! I just recently came back to wanikani, and reset to level 1. One of the tools I had built long ago was a Siri shortcut to set my wallpaper to a grid of wanikani kanji and their current SRS level. I’ve updated it to fix the bugs that have cropped up, and dramatically improved the installation experience for non technical users.
To adjust the top and bottom insets, edit the shortcut, expand the “run with parameter” section, then replace “54” and “34” with the desired insets (in display independent pixels)
Note that the background DOES NOT UPDATE IF NO KANJI SRS HAVE CHANGED. If you would like it to, either do some reviews or change the “false” in the first line of the script to “true” and it will always update the image.
And after doing so it spits out the no output box and doesn’t seem to do anything to the wallpaper. Any ideas? I tried setting the override to both true and false, both scenarios do nothing.
I’m on an iPhone xs max - software is fully updated.
. The only setup question I am unsure of is which wallpaper to overwrite — I have tried both manually selecting the only wallpaper I have or just hitting Next and either approach gives me the same error. I am not sure what the commenter above meant by entering the api token manually because I don’t know where to enter it.
I have created a new key for this but have no idea if it’s a v2 api key because I do not see any options for key version.
The bad thing is I had it halfway working earlier (the Home Screen was just black, but the Lock Screen was working) but started over from scratch because you had asked if I was sure I used the updated version since I’d posted about my minor trouble in the wrong thread. But now it won’t work at all since I can’t get past this error.
I’ll give that a shot - something seems off with my wallpapers as it only gives me the option to choose specific ones. That could be the issue. Will report back!
I’m sorry this will probably not be very helpful, but I had the same problem. I re-entered the api key, problem stayed the same. I hit the play button to run and after like, four attempts, it just started working.
I even re-installed it afterwards to try to reproduce the error and solution, but it just ended up exactly the same. Same error, no changes made (what I can tell, except i re-entered the api key) and then it started working after hitting play (run script thingy) several times.
Yeah, I got hopeful and just kept trying to run it, but whatever magic it is you encountered didn’t show up for me. I wish I knew more about scripting to even decipher what might be going wrong here, but it’s all Greek to me!
Nope — lifetime membership. And as I said, it half-worked for me earlier (worked on the Lock Screen but not on the Home Screen) but when I asked it was suggested maybe I used the old link rather than the updated one, so I started from scratch making sure to use the link at the top and now it doesn’t work at all.
I went back to the old version because it at least half- works. I don’t know what improvements I’m missing, but it doesn’t have the “undefined is not an object” error.
Hello! Thank you for your great work, @maboesanman . I was able to fix the issue with the script. Apparently, the way variables are passed in shortcuts is different from how it’s done in scriptable, and they need to be directly referenced. Just with that, the problem is all sorted out. Thank you for the wallpaper, it certainly motivates me with every little progress I make.
For anyone using the shortcut, as @maboesanman already explain if you wan’t to change the distance between the top of the screen and the wallpaper or the bottom, you should change in the code the numbers in const top_buffer_points or the bottom_buffer_points respectively.
Just want to thank you for this wonderful thing you have made. It is a constant reminder, without it I’m sure I would’ve forgotten to do my reviews some days. Very motivating to see the background change
To confirm, in case it helps others in the future, no write access is needed, so when creating a new API token none of the permissions need to be checked – correct? Shortcuts is also saying that a 3rd party app needs to be installed to run it.