I am trying to make a skin that would connect with Anki and display how many cards are due at a given moment. Maybe even (if I can) have a way to add cards directly from the desktop. From what I understand it should be possible with AnkiConnect (website here). The AnkiConnect website gives some example code in Python and JavaScript, so I guess my job is to translate that into lua but I'm kinda out of my depths here.
There are these two lines of Python code that I just straight up don't understand :
I don't think there are ways to use APIs directly in Rainmeter without using external program, but you could for example add in your @Resource folder a small python program ran by rainmeter that could call Anki's API (for compatibility purpose, you should also include a python instance in the skin files).