# Anki addon to beemind cards count and time spent

**URL:** <https://forum.beeminder.com/t/anki-addon-to-beemind-cards-count-and-time-spent/7229>\
**Category:** Akrasia\
**Created:** [September 10, 2020, 12:32pm UTC](https://forum.beeminder.com/t/anki-addon-to-beemind-cards-count-and-time-spent/7229 "2020-09-10T12:32:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Remoddy](https://avatars.discourse-cdn.com/v4/letter/r/bc8723/32.png) [@Remoddy](https://forum.beeminder.com/u/Remoddy)\
**Post date:** [September 10, 2020, 12:32pm UTC](https://forum.beeminder.com/t/anki-addon-to-beemind-cards-count-and-time-spent/7229/1 "2020-09-10T12:32:14Z")

</div>

This addon sends your Anki stats to BeeMinder. It can track how many cards you reviewed today or how much time (in minutes) you spent with Anki. The same data that you see in the main Anki window (“Studied 42 cards in 2 minutes today”).

[https://ankiweb.net/shared/info/1201383547](https://ankiweb.net/shared/info/1201383547)

Use the “Do more” goal type for BeeMinder (available with the free plan).

This addon works with the Anki program on your computer, but if you use Anki on your phone and sync via AnkiWeb, it’s also fine. The data will be synced to the computer and then the addon will send it to BeeMinder. It’s ok if you don’t start Anki on your computer every day (last 7 days are synced).  
The data is sent to Beeminder at every sync with AnkiWeb (automatically or when you click the “Sync” button depending on your Anki settings). The addon caches the data that it posts to Beeminder, so it does not send the data more often than needed.  
If you manually edit/delete old datapoints on BeeMinder, the addon probably will not recreate them, but no warranty here, the behavior is undefined. The same if you switch from tracking cards number to time spent without creating a new goal. You’ve been warned!

Start with configuring you auth\_key and Beeminder goal name (Tools -\> Addons -\> Beeminder Sync).

I used ideas and maybe a bit of code from this nice Anki addon: [https://ankiweb.net/shared/info/1928083890](https://ankiweb.net/shared/info/1928083890) Thank you!

Works fine with Anki 2.1.8, 2.1.26. Does not work with 2.1.28+ (20 Jul 2020) - apparently the syncing process was rewritten from Python to Rust. I don’t plan to dig into this, I will stick with the older versions for some time. Feel free to send a patch though. I will be glad if it will be useful for others. Would love to hear some feedback. Cheers!

---

<div class="post-metadata">

**Author:** ![louispotok](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@louispotok](https://forum.beeminder.com/u/louispotok)\
**Post date:** [March 10, 2021, 3:27pm UTC](https://forum.beeminder.com/t/anki-addon-to-beemind-cards-count-and-time-spent/7229/2 "2021-03-10T15:27:03Z")

</div>

Thanks for doing this! You suggested you’re open to patches but I don’t see a link to the source?

---

<div class="post-metadata">

**Author:** ![yngwie](https://avatars.discourse-cdn.com/v4/letter/y/8dc957/32.png) [@yngwie](https://forum.beeminder.com/u/yngwie)\
**Post date:** [April 25, 2021, 5:31am UTC](https://forum.beeminder.com/t/anki-addon-to-beemind-cards-count-and-time-spent/7229/3 "2021-04-25T05:31:56Z")

</div>

Looks nice. If you can get time spent on cards on any past day, could you create / add feature to show this in anki? Or at least export that data to csv day spent with deck filter.

---

<div class="post-metadata">

**Author:** ![shruti6476](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/shruti6476/32/3429_2.png) [@shruti6476](https://forum.beeminder.com/u/shruti6476)\
**Post date:** [May 17, 2021, 5:39pm UTC](https://forum.beeminder.com/t/anki-addon-to-beemind-cards-count-and-time-spent/7229/4 "2021-05-17T17:39:37Z")

</div>

Thanks for contributing. Does this work with Anki 2.1.43?

---

<div class="post-metadata">

**Author:** ![fidel\_namisi](https://avatars.discourse-cdn.com/v4/letter/f/da6949/32.png) [@fidel\_namisi](https://forum.beeminder.com/u/fidel_namisi)\
**Post date:** [August 27, 2022, 4:40am UTC](https://forum.beeminder.com/t/anki-addon-to-beemind-cards-count-and-time-spent/7229/5 "2022-08-27T04:40:24Z")

</div>

I followed the instructions here. [Beeminder Sync - AnkiWeb](https://ankiweb.net/shared/info/1201383547). However, Beeminder doesn’t seem to be picking up any data. I noticed in the instructions that there is nothing that needs to be done on the Beeminder side. Everything is done on the Anki side. Is this accurate? Isn’t there something that needs to be done within Beeminder to make this thing work? Am I missing something? Thank you.

---

<div class="post-metadata">

**Author:** ![Remoddy](https://avatars.discourse-cdn.com/v4/letter/r/bc8723/32.png) [@Remoddy](https://forum.beeminder.com/u/Remoddy)\
**Post date:** [August 27, 2022, 1:22pm UTC](https://forum.beeminder.com/t/anki-addon-to-beemind-cards-count-and-time-spent/7229/6 "2022-08-27T13:22:44Z")

</div>

Hi, everything is done on the Anki side EXCEPT creating a Beeminder goal. You will need to create a goal manually and write it’s name in the settings.

I haven’t used it for quite some time and not sure if it works. Certainly does not work for up-to-date versions of Anki (2.1.28 or more). Cheers.

---

<div class="post-metadata">

**Author:** ![bizzle](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/bizzle/32/4723_2.png) [@bizzle](https://forum.beeminder.com/u/bizzle)\
**Post date:** [September 1, 2022, 7:53pm UTC](https://forum.beeminder.com/t/anki-addon-to-beemind-cards-count-and-time-spent/7229/7 "2022-09-01T19:53:21Z")

</div>

Hi @Remoddy  
When i load up anki with the Beeminder Sync addon this message pops up. How do i resolve this? Thanks

> An add-on you installed failed to load. If problems persist, please go to the Tools\>Add-ons menu, and disable or delete the add-on.
> 
> When loading ‘⁨Beeminder Sync⁩’:  
> ⁨Traceback (most recent call last):  
> File “aqt\addons.py”, line 230, in loadAddons  
> File “C:\Users\Bizzle\AppData\Roaming\Anki2\addons21\1201383547\__init_\_.py”, line 106, in   
> with open(“/tmp/alog”, “a”) as f:  
> FileNotFoundError: [Errno 2] No such file or directory: ‘/tmp/alog’
