Anki: setup, fields and sending
AutoMiner uses Anki for two jobs. It reads your collection to learn which words you already know, so it can find sentences with exactly one new word (i+1). It writes the finished cards into Anki as notes. Both go through the AnkiConnect add-on, and only the AutoMiner server talks to it. Your browser never talks to Anki.
A few AutoMiner words used on this page:
- Card: one mined sentence for one word, with its audio clip and screenshot. Sending a card makes (or updates) an Anki note.
- Gold: the best sentence AutoMiner has picked for a word, one per word per source. Only Gold cards are sent automatically.
- Source: one video, episode or podcast episode you watched or listened to.
What you need
Section titled “What you need”| Piece | Where | Notes |
|---|---|---|
| Anki (desktop) | your computer, or the server itself | Anki must be open while AutoMiner reads or sends. |
| The AnkiConnect add-on | inside Anki | Add-on code 2055492159. |
| A note type | Anki | Kiku by default. Any note type works once its fields are set up (see How note fields are filled). |
| Yomitan (optional) | see Dictionaries and Yomitan | Supplies definitions, readings, pitch, frequency and the card format. Cards can be sent without it. |
1. Install AnkiConnect
Section titled “1. Install AnkiConnect”- Open Anki.
- Choose Tools > Add-ons > Get Add-ons…, paste
2055492159and press OK. - Restart Anki.
Settings › Services also has a Download button next to the AnkiConnect URL that opens the add-on’s page.
2. Let the server reach AnkiConnect
Section titled “2. Let the server reach AnkiConnect”Anki on the same machine as the server
Section titled “Anki on the same machine as the server”There is nothing to set. With no URL saved, AutoMiner asks http://127.0.0.1:8765,
AnkiConnect’s own default address on the server’s machine. This is the usual case for the
Windows installer.
Anki on another computer
Section titled “Anki on another computer”AnkiConnect only listens on its own machine until you change its config.
-
In Anki choose Tools > Add-ons, select AnkiConnect and press Config.
-
Set
webBindAddressso other machines can connect.0.0.0.0listens on every network of the computer. LeavewebBindPortat8765unless you need another port. Keep the other keys as they are:{"webBindAddress": "0.0.0.0","webBindPort": 8765} -
Press OK and restart Anki.
-
Note the computer’s address on your network (for example
192.168.1.20), or its name on a VPN you use between the two machines. The AnkiConnect URL is thenhttp://192.168.1.20:8765. -
If your computer’s firewall asks whether Anki may accept connections, allow it on your private network. If it does not ask and the server still cannot connect, allow incoming connections to port 8765 yourself.
With 0.0.0.0, anything on that network can control your Anki. Bind to one network
address instead if you can, keep the server and Anki on a private network or VPN, or set
an API key (next section).
CORS (webCorsOriginList). AutoMiner’s requests come from the server process, not
from a web page, so you normally do not need to add AutoMiner’s address to
webCorsOriginList. If a connection test says AnkiConnect answered but refused (403),
check webCorsOriginList and the API key, as the message says.
Permission prompt. AutoMiner never uses AnkiConnect’s permission request, so Anki does not show an AutoMiner permission dialog. A prompt you see while setting this up is most likely your firewall (step 5).
Optional: an AnkiConnect API key
Section titled “Optional: an AnkiConnect API key”If you expose AnkiConnect beyond your own machine, you can make it require a key:
-
In AnkiConnect’s Config, set
"apiKey"to a long random string and restart Anki. -
On the server, store the same key:
Terminal window autominer secret set ANKICONNECT_API_KEY # prompts; the value is never echoedautominer secret list # shows set/unset, never the value
AutoMiner keeps the key in its own file, $AUTOMINER_SECRETS_DIR/ANKICONNECT_API_KEY
(by default $AUTOMINER_HOME/secrets/), never in the database. It sends the key with
every request and reads the file each time, so there is no restart. The key cannot be
entered in the web UI. Without a key set on either side, nothing changes. Secrets and
their files are described in Configuration.
Save the URL in AutoMiner
Section titled “Save the URL in AutoMiner”You can enter the address in either place:
- The setup page (a fresh install opens on it): the Anki card. Type the URL and press Save. Leave it blank for Anki on the server’s own machine.
- Settings › Services › AnkiConnect URL: type the URL and press Save changes (or
Ctrl/⌘+S). Saving tests the URL; Test checks the saved URL again (a URL you have not saved yet is not tested). The URL applies as soon as it is saved, with no restart. Settings › Send › AnkiConnect shows the same status and links here.
What you can see under the field:
| Status | Meaning |
|---|---|
✓ Connected · <host> |
AnkiConnect answered. |
Open profile: <name> |
The Anki profile that is open now. |
Open profile: <name> (read from: <other> — not the same) |
The open profile is not the one AutoMiner read and sent to. See Profiles and second computers. |
| Open profile: unknown (AnkiConnect is old or not answering) | AutoMiner cannot tell which profile is open. Update AnkiConnect. |
| Can’t reach Anki (is Anki running on the PC? Check the URL too) | Nothing answered at that address. See Troubleshooting. |
Which address wins: a URL saved in Settings, then the ANKICONNECT_URL environment
variable (used only while no URL is saved), then http://127.0.0.1:8765. From a shell,
autominer doctor --online makes one read-only call to AnkiConnect and reports the
result. autominer help anki prints a worked example.
3. Decks and note types
Section titled “3. Decks and note types”New notes go to the deck Backlog with the note type Kiku unless you change them. Both are set in Settings › Languages › Per-language settings:
| Setting | Default | What it does |
|---|---|---|
| Default destination › Deck | Backlog |
The deck for every language that has no deck of its own. |
| Default destination › Note type | Kiku |
The note type for every language that has no note type of its own. |
<language> deck (one per studied language, on its tab) |
blank = the default deck | That language’s cards go here. |
<language> note type (one per studied language, on its tab) |
blank = the default note type | That language’s cards use this note type. |
If you study a single language, only its own deck and note type are shown. The setup page also asks for the deck: one box for a single language, or a shared Deck box plus one per language. Once AnkiConnect answers, the boxes in Settings suggest the decks and note types Anki has, and the setup page’s boxes suggest its decks.
The field warns you before a send would fail:
- Anki has no deck “…”, or Anki has no note type “…”: you can save it, but AnkiConnect refuses the notes when sending. Create the deck or note type in Anki first.
- “…” lacks fields AutoMiner writes: …: the note type is missing fields AutoMiner fills. Map them (next section) or pick another note type.
Changing a deck or note type affects notes sent from then on. Notes already sent are not moved. If you use the duplicates range, add the new deck to it too (see Words that already have a note).
How note fields are filled
Section titled “How note fields are filled”From Yomitan’s card format
Section titled “From Yomitan’s card format”AutoMiner builds each note the way Yomitan would. It asks the Yomitan API for its Anki
card formats (/ankiCardFormats, from every Yomitan profile) and uses the term format
whose note type is the one the card is sent with. Each field gets exactly the template
you set in Yomitan, such as {expression} or {glossary}, filled with AutoMiner’s values.
- The formats are fetched again at most every 10 minutes, when cards are enriched or sent. After you change the format in Yomitan, press Reload in Settings › Send › Fields to fetch it at once.
- While Yomitan is down, AutoMiner sends with the format it fetched last.
- The built-in Yomitan comes with a ready card format for the
Kikunote type, so Kiku works without setting anything up in Yomitan.
Settings › Send › Fields shows which format is in use, with a status line:
| Status | Meaning |
|---|---|
| Built from Yomitan’s card format “…” (fetched …) | Normal. The table below it lists every field and its template. |
| … — Yomitan can’t be reached right now, so sent in this format | Yomitan is down; the last fetched format is used. |
| Yomitan has no card format for “…” — sent with Kiku’s field names | Yomitan has no term format for this note type. |
| No card format from Yomitan yet — until then, sent with Kiku’s field names | Yomitan has not answered yet. |
| Yomitan API not set: sent with Kiku’s field names | No Yomitan is set up: neither the built-in one nor a Yomitan API URL. |
The table shows each field’s template, and how the field is written when AutoMiner updates a note that already exists: (on update: …), from Yomitan’s overwrite setting for that field. The status and table are for the first studied language’s note type. Cards of another language use the card format of their own note type when Yomitan has one.
AutoMiner’s own fields: translation, picture, audio
Section titled “AutoMiner’s own fields: translation, picture, audio”Yomitan has no value for the sentence’s translation, the screenshot or the sentence audio clip, so you choose their fields below the table:
| Field box | Default when blank |
|---|---|
| Translation | guessed from the card format (a field whose name contains “translation”), else SentenceTranslation |
| Picture | the field whose template uses {screenshot} or {clipboard-image}, else Picture |
| Audio | the field whose template uses {sentence-audio}, or whose name contains “sentenceaudio”, else SentenceAudio |
| Sentence (shown only when no card format is in use) | Sentence |
Get fields loads the note type’s real field names into the boxes’ suggestions. A box whose placeholder reads (not sent) has no field to go to. If two values are assigned the same field, the status says so and nothing can be sent until you fix it.
Without a card format
Section titled “Without a card format”With no card format for the note type, AutoMiner sends with Kiku’s field names. Fields your note type does not have are left out, and a note type whose fields do not match fails to send. Either give the note type a card format in Yomitan, or use Kiku.
The Kiku fields
Section titled “The Kiku fields”This is what each Kiku field holds. With the built-in Yomitan’s format the templates are the ones shown; with your own Yomitan format, your templates decide.
| Field | Built-in template | Content |
|---|---|---|
Expression |
{expression} |
the word in dictionary form (Yomitan’s headword) |
ExpressionReading |
{reading} |
its reading |
ExpressionFurigana |
{furigana-plain} |
the word with furigana |
ExpressionAudio |
{audio} |
the word’s audio (see Media) |
SelectionText |
{popup-selection-text} |
the word |
MainDefinition |
{single-glossary-…} |
the definition from your main dictionary |
Glossary |
{glossary} |
Yomitan’s dictionary entries |
Sentence |
{cloze-prefix} <b>{cloze-body}</b> {cloze-suffix} |
the line as heard, the word in bold |
SentenceFurigana |
{sentence-furigana} |
the line with furigana, the word in bold |
SentenceTranslation |
AutoMiner’s translation | the line’s translation, if one was made |
SentenceAudio |
AutoMiner’s audio | the trimmed clip of the line |
Picture |
AutoMiner’s picture | the screenshot |
PitchPosition / PitchCategories |
{pitch-accent-positions} / {pitch-accent-categories} |
pitch accent when known, empty otherwise |
Frequency / FreqSort |
{frequencies} / {frequency-harmonic-rank} |
frequency lists, and a numeric rank for sorting |
MiscInfo |
{document-title} |
the source and time, as [Source] <series or title> - <episode> @ 00:12:34 (the episode part only when there is one) |
The other Kiku fields (RelatedExpression, DefinitionPicture, Hint, the Is…Card
switches, GenerateListening) are filled from the format’s templates, which leave them
empty in the built-in format.
Writing into a note that already exists
Section titled “Writing into a note that already exists”When a send merges into, overwrites or updates a note, the sentence, its furigana, the
translation, the sentence audio, the picture and MiscInfo are AutoMiner’s to write. Every
other field follows Yomitan’s overwrite setting for it (the default fills it only if it is
empty), and a field that has a value is never emptied. When Yomitan has no card format for
the note’s type, those other fields are left as they are.
Media on the card
Section titled “Media on the card”| Media | File in Anki | Field value |
|---|---|---|
| Sentence clip | <card id>.mp3 |
[sound:<card id>.mp3] |
| Screenshot | <card id>.jpg |
<img src="<card id>.jpg"> |
| Word audio | yomitan_audio_<hash>.<ext> |
[sound:yomitan_audio_<hash>.<ext>] |
AutoMiner uploads the files to Anki’s media folder with each send.
Word audio comes from Yomitan’s audio sources for the word and its reading. When Yomitan has none, Korean and Chinese words get a recording from Wikimedia Commons if one exists (Korean: Wiktionary or Lingua Libre; Chinese: Lingua Libre), which is mostly the case for common words. Files over 4 MB are skipped. A card with no word audio is still sent, with the field empty. If you typed your own value into the card’s word-audio field, AutoMiner keeps it. A merge adds word audio only when the note has none; an overwrite replaces it.
Every note AutoMiner sends gets these tags:
| Tag | Example | Meaning |
|---|---|---|
<Platform>::<name> |
Stremio::Some_Show, Spotify::Some_Podcast |
Where the line came from. The name is the show or series; for YouTube it is the video’s title. Spaces become _. |
auto::<card id> |
auto::3f2a… |
The link back to the card in AutoMiner. |
autominer::auto |
Added only to cards sent by auto-send. |
Keep the auto:: tags. AutoMiner uses them to recognize its own notes, for example when
the same collection is opened under another profile name or on another computer.
Known words: how AutoMiner reads your collection
Section titled “Known words: how AutoMiner reads your collection”The known-word cache is AutoMiner’s list of the words you already have in Anki. A sentence’s unknown words are counted against it, so it decides which sentences are i+1.
What counts as known. Every card in the whole collection, in any deck, whatever its interval: a new or suspended card counts the same as a mature one. There is no maturity setting. From each note AutoMiner reads:
- the word fields: your note types’ word field (
Expression, or the field Yomitan’s card format fills with{expression}), and any other field named likeExpression,Word,Vocab,Vocabulary,Term,Target,Kanji,Front,Japanese,単語,表現or見出し語; - the reading fields: your note types’
ExpressionReadingandExpressionFuriganafields (as mapped the same way), and fields named likeReading,Kana,Furigana,Yomi,読み,読み方orふりがな(a word’s reading counts as known too); - the sentence fields: fields named like
Sentence,Example,Context,Cloze,Text,例文,文or文章. Every word in them counts as known.
Names are matched ignoring case, spaces and punctuation. A word field longer than 32 characters is read like a sentence. Each note is assigned the studied language its text looks like, so a Japanese note does not make a Chinese word known.
Known-word CSV (Japanese only, under Languages › Japanese › Known-word cache ›
Advanced): a CSV with the header Morph-Lemma and one word per line, for words you know
but have no note for (interjections, fillers, katakana words). Those words count as known
too.
When AutoMiner reads Anki.
- Before every mine of a source, it reads the changes since the last read.
- Update known words (Settings › Languages › Known-word cache) reads the changes now. Read all again reads the whole collection from scratch.
- Just before a daily auto-send (see Auto-send).
- When a read failed (Anki closed, another profile open), AutoMiner tries again on its own: within about two minutes once Anki answers, and every 15 minutes while a read is refused.
- Saving the Duplicate search range reads the whole collection again and re-mines every source.
A read of the changes looks at notes added or edited since a little before the last read (two days of margin) and at notes deleted since. A word whose only note you delete stops being known. After a read that changed something, the unknown-word counts of the candidates are recomputed.
Where to see it. The Known-word cache section shows the count per language, and Today’s Known words tile shows the total and when it was last updated.
When Anki cannot be read, mining goes on with the last cache, so a word you added to Anki since may show up as unknown. Auto-send stops until Anki has been read again (see What holds a card back).
Sending cards
Section titled “Sending cards”By hand, from the editor
Section titled “By hand, from the editor”- Open a card in the editor: from the Queue, a source in Sources, or Audit › Clips.
- Check the sentence, clip and fields. The editor asks Anki whether the word already has a note; while it does, Send to Anki waits (Checking whether Anki has a note for this word).
- Press Send to Anki, or
Ctrl/⌘+Enterfrom anywhere in the editor.
Before the note is written, AutoMiner translates the sentence if auto-translate is on and it has no translation yet, fills the definition if it is missing, and checks that the clip is current. An out-of-date clip is cut again first. A card whose source is still being processed, or whose clip cannot be cut again, is not sent, and the editor says why (nothing is sent).
After the send, the card’s status is Sent and the editor stays open. If the word already has a note, you get a choice instead (see Words that already have a note). The editor and its other buttons are described in Reviewing cards.
Auto-send
Section titled “Auto-send”Auto-send sends Gold cards to Anki without you opening them. It is set in Settings › Send › Auto-send:
| Setting | Default | What it does |
|---|---|---|
| Send to Anki without review | off | Sends Gold cards whose clip passes the clip rules (below). |
| When to send | Right away | Right away: a card is sent as soon as its clip scores at or above the Send threshold. Daily at a set time: the waiting Gold cards are sent together at Send time. |
| Send time | not set | The daily send time, read in General › Time zone. If that is blank, saving the send time saves your browser’s time zone. With no send time, nothing is sent. Cards that become ready after the time are sent right away until the day ends. |
| Cards per send (max) | blank = no limit | With Right away: how many cards auto-send sends from each source in all, not per day (5 = up to 5 from each source). With Daily at a set time: the limit for each day’s send, split as below. |
| Split the limit | Round robin (limit in all) | Only with a limit and a daily send. Round robin takes one card at a time from each source, highest clip score first, up to the limit in all. Limit per source takes up to the limit from each source. |
| Advanced › Override “Send to Anki without review” | Use the shared setting | Turns auto-send on or off for YouTube only, Stremio only or Spotify only. |
Just before a daily send, AutoMiner reads Anki again. With a daily send, the Queue shows Send now while cards wait and today’s send has not happened. It reads Anki and sends today’s cards at once.
The Queue page shows the result:
- Send: every card auto-send will send, in order: Next send (or Tomorrow’s send) first, then After that. It lists the cards even while auto-send is off.
- Auto-sent: cards auto-send sent, where you can play each clip and mark a bad one NG. An auto-sent card you leave alone counts as OK.
- Rejected: cards you marked NG, and cards deleted in Anki.
Today’s Anki sends tile counts the cards sent today, the next send, how many wait and the limit. The Queue is described in full in Reviewing cards.
What holds a card back from auto-send
Section titled “What holds a card back from auto-send”Auto-send only sends a card that passes every check below. The Queue’s Send tab says how many Gold cards are held and why (N Gold cards can’t be sent: …). Sending by hand from the editor is not held by the clip rules.
Clip rules (set in Settings › Clips › Clip rules for Gold; every clip reason is listed in Clips):
| Held because | Setting | Default |
|---|---|---|
| the clip score is below the threshold, or the clip is not scored yet | Send threshold: the clip score (how likely the clip is cut cleanly at the line’s start and end) a clip needs, 50–100%. Can be overridden per platform under Advanced. | 95% |
| the voice is quiet | Quiet clips: a clip more than this many dB quieter than the source’s typical clip. Blank or 0 turns it off. | 10 dB |
| the voice is buried under music | the music level (Strict 85%, Standard 75%, Lenient 55%, Off). Needs the separation service to measure; without one, choose Off or the clips wait. | Standard |
| its line is a song lyric | always | |
| a clip joined from several subtitle lines | never auto-sent |
Anki state:
- Sends are held until Anki is read again: the last read of Anki failed (Anki closed or unreachable, another profile open, the collection looks different). The word might already be in Anki, so nothing is sent until a read succeeds. Today and Settings say what to do: start Anki, open a profile, or press Read all again.
- its word has a note (duplicates are merged by hand): the word has a note in the duplicates range and Duplicate handling is Choose each time (see the next section).
- refused as a duplicate (checked again once Anki is read): a send found a note it could not write by itself, for example several notes, a different reading or missing fields.
- The card was deleted in Anki: it is never sent again on its own.
Card state: waiting for the clip to be re-cut, waiting for work on its source, its source video was released, so it is sent by hand only, and cards not Gold (Gold also depends on Lowest score for Gold, in Settings › Clips).
Words that already have a note
Section titled “Words that already have a note”The range and what “Duplicate” means
Section titled “The range and what “Duplicate” means”Settings › Cards › Words already in Anki › Duplicate search range is an Anki search,
for example deck:Backlog. It decides what happens to a word that already has a note:
| The word’s note is | Mined? | Status in AutoMiner |
|---|---|---|
| in the range | yes, as a candidate for that note | Duplicate, unless Duplicate handling can do its job by itself |
| outside the range | no: the word counts as known | Duplicate, out of range for its cards from before and any card you made of it. Nothing is done to them automatically. |
| nowhere | yes, as a new word |
Blank (the default, No range) means no range: no word that has a note is mined. Saving the range reads the whole collection again and re-mines every source. Add the decks AutoMiner sends to (and any per-language decks) to the range if you want new sentences for words you already mined.
In Audit › Clips, search status:duplicate for in-range duplicates and status:known for
out-of-range ones. Today’s Duplicate tile counts the duplicates waiting to be merged by
hand (status:duplicate -is:sentword: words not already sent from the same source),
shows the range, the notes in it and the last sync, and links to that list. When the last
read failed, the tile says Anki not reachable (since …) or Anki’s words not read
(since …) instead.
Duplicate handling
Section titled “Duplicate handling”Settings › Send › Duplicate handling says what a send does with a word that has a note in the range:
| Option | What happens |
|---|---|
| Choose each time (no auto-send) (default) | The card is marked Duplicate and is never sent by auto-send. In the editor you pick Merge, Overwrite or Create duplicate. |
| Overwrite | Done without asking, auto-send included. The note keeps its ID and review history; its sentence (with its furigana), translation, sentence audio, picture and MiscInfo are replaced. |
| Create duplicate | Done without asking, auto-send included. A second note is made for the same word. |
| Merge (Kiku) | Done without asking, auto-send included. The sentence, its translation, audio, picture and MiscInfo are added to the note as one more page (Kiku’s multi-sentence pages). Other fields follow Writing into a note that already exists. |
Overwrite and Merge only act by themselves when the range holds exactly one note for the word and its reading matches the card’s. A note with no reading AutoMiner can read is never written automatically. With several notes, or a different reading, a send by hand asks which note, and auto-send skips the card.
Merge Kiku-style (Settings › Languages › Japanese › Japanese options, default ON) enables merging. With it OFF, the editor has no Merge button and Merge (Kiku) behaves like Choose each time. Turn it off if you do not use Kiku.
Merging and overwriting need a note type with Sentence, SentenceAudio and Picture
fields (as mapped). A note without them can only get a duplicate (Create duplicate), and
the editor says This note has no … field.
In the editor
Section titled “In the editor”When the word has a note, the send button becomes Send… and asks This word has a note. What now?:
- Merge: add this sentence, audio and image to the existing note as a page (Kiku).
- Overwrite: replace the existing note’s sentence, translation, audio, image and source with this sentence. AutoMiner asks first, naming the note.
- Create duplicate: make a new note for the same word.
With several notes, pick one under Which note?. The ↗ button opens the note in Anki’s browser. If the note already has this exact sentence, AutoMiner says This note already has this sentence and offers Overwrite or Create duplicate. When a Duplicate handling option is set, the editor shows one button that does it (Merge and send, Overwrite and send or Send as a new note). A note outside the range is always asked about, and a second note is never made without Create duplicate.
After sending: changing and deleting notes
Section titled “After sending: changing and deleting notes”AutoMiner records which note each card became, in which profile, and how (new, merged,
overwritten). This record (anki_link in the database) is how it knows a card is Sent.
Editing a sent card. Open it in the editor, change it, and press Update Anki. This replaces that card’s sentence, audio, picture and translation in its note (only its own page, for a merged card). If the sentence, its furigana, the translation or the source was changed in Anki since you sent it, AutoMiner asks first: … was changed in Anki. Replace it with AutoMiner’s? Replace writes AutoMiner’s version; Keep Anki’s changes updates the other fields only. Re-cutting a clip or levelling clip loudness in AutoMiner does not change notes already in Anki until you press Update Anki.
Deleting a note in Anki. AutoMiner notices at its next check of sent cards: when you open the Queue, when you open the card in the editor, or when a source reads Anki again. Then:
- the card is no longer Sent, and it moves to Queue › Rejected with the badge Deleted in Anki ({n} cards deleted in Anki moved to Rejected. They are not sent again on their own);
- it counts as sentence unusable; the clip scorer learns nothing from it;
- it is never sent again by auto-send. Restore on its row brings it back, and a Gold card then goes back on the send. You can also send it by hand;
- if no other note has the word, it stops being known at the next read.
A note that comes back (for example after a sync from AnkiWeb) is found again and the card is Sent again (Restored {n} sent cards found in Anki).
AutoMiner never deletes anything in Anki. Deleting a clip, a card or a source in AutoMiner leaves its note in Anki. Changing the deck or note type does not move sent notes.
Profiles and second computers
Section titled “Profiles and second computers”AutoMiner remembers the Anki profile it read and sent to. If another profile is open, it does not read that collection and auto-send holds its cards. Today and Settings say The profile open in Anki, “…”, is not the one read, “…” with what to do: open that profile, or press Read all again (Settings › Languages › Known-word cache) if you switched profiles on purpose.
A renamed profile, or the same collection on a second computer under another profile name,
is recognized when the old name is not one of this Anki’s profiles and at least 60% (and at
least 3; all of them when fewer were sent) of the notes sent under the old name are present
with their auto:: tags. Settings then shows Profile rename detected: … → …. A collection that does not hold
the sent notes (a new PC that has not synced from AnkiWeb yet) changes nothing until you
sync it or press Read all again. The rules are spelled out in
Configuration.
Troubleshooting
Section titled “Troubleshooting”| What you see | Cause | What to do |
|---|---|---|
Can’t reach Anki (is Anki running on the PC? Check the URL too), or Cannot reach Anki (asked <host>; is Anki running?) |
Anki is closed, the URL is wrong, AnkiConnect is bound to 127.0.0.1 only, or a firewall blocks port 8765. |
Start Anki. Check the URL in Settings › Services and press Test. For Anki on another computer, set webBindAddress and allow the port (step 2). |
| Cannot reach Anki (asked 127.0.0.1:8765: the default address, as Settings has no URL; …) | No URL is saved, so the server asked itself. | Save your Anki computer’s AnkiConnect URL. |
| Cannot reach Anki (asked …: the server’s environment variable, not a URL saved in Settings; …) | The address comes from ANKICONNECT_URL. |
Save the right URL in Settings; a saved URL wins. |
| AnkiConnect answered but refused (403) — check AnkiConnect’s settings on the PC (webCorsOriginList / API key) | AnkiConnect rejected the request. | Check apiKey and webCorsOriginList in AnkiConnect’s Config, and the key stored with autominer secret set ANKICONNECT_API_KEY. |
| Anki shows a permission dialog | Not from AutoMiner, which never asks AnkiConnect for permission. | Usually the firewall; allow Anki on your private network. |
| Open profile: unknown (AnkiConnect is old or not answering) | AnkiConnect cannot report the open profile, so sent cards are not checked. | Update AnkiConnect (Tools > Add-ons > Check for Updates) and restart Anki. |
| Open profile: … (read from: … — not the same), auto-send held | Another profile is open. | Open the profile named, or press Read all again if you switched on purpose. |
| Sends are held until Anki is read again (…) in the Queue | The last read of Anki failed. | Start Anki or open the right profile. AutoMiner reads it again by itself. |
| Settings warns Anki has no deck “…”, Anki has no note type “…” or “…” lacks fields AutoMiner writes, or a send fails with Anki returned an error: … | The deck or note type does not exist, or its fields do not match. | Create them in Anki, or fix the names in Settings › Languages. Map the fields in Settings › Send › Fields. |
| Fields status: Yomitan has no card format for “…” — sent with Kiku’s field names | Yomitan has no term card format for that note type. | Add one in Yomitan’s Anki settings for that note type, then press Reload. Or use Kiku. |
| Fields status names two values assigned to the same field | Two of AutoMiner’s values point at one field. | Change one of the Translation / Picture / Audio boxes. |
| The editor says Anki refused the write because the note is open in Anki’s browser or editor | Anki does not let AnkiConnect change a note that is open. | Close that window in Anki and send again. |
| Anki stopped partway. A note may have been made. When Anki is back, do the same again | Anki stopped answering mid-send. | Press the same button again once Anki is back. AutoMiner finds the note it made instead of making a second one. |
| Words you know appear as unknown | The known-word cache is stale, or your note type’s word field has a name AutoMiner does not read. | Press Update known words. Check that the note type’s word field is mapped or named like one of the fields read. Add stray words to the Known-word CSV (Japanese). |
| Auto-send sends nothing | Auto-send is off, no send time (daily), the limit is reached, the cards are not Gold, or they are held. | Read the reasons on the Queue’s Send tab (What holds a card back). |
| The collection open in Anki does not look like the one cards were sent to (only … of … sent notes are in it) | A different collection is open under the same profile name. | Sync from AnkiWeb, or press Read all again to switch to this collection on purpose. |