The work-around I mentioned is a website indeed but opensource code:

1 Like

The extraction of the data is pretty easy, as it is basically a relatively simple query to the sqlite database on the Kobo device. Making a good user experience, and packaging it up as a plugin, is another story and where the main challenge lies. :slight_smile:

1 Like

@rsletta Really appreciate you having a go at this!

1 Like

I just bought a Kobo and installed KOReader and I see that it support sending notes to joplin (because joplin offers API).
I’m a backend nodejs developer so creating a (partial) API compatible with joplin should be fairly easy, this way I can create a obsidian plugin to send highlights and notes from KOReader … is anyone interested or is something that can already be achieved in some way?

At this point I’m even considering buying a kindle because I can’t integrate my Kobo notes properly with my PKM system. So yes, Im definitely interested!!

Are you using koreader or the native reader on your kobo?

Native at the moment, had Koreader on it previously, but I think that got wiped off with an previous update and never bothered to install it again. But that would definitely change if I could export my notes with Koreader to Obsidian.

I don’t use a Kobo, I just really like the KOReader on Android since it offers many features and makes any tablet a good ereading device. I’m experienced in Python and it would be fairly easy to write a Python exporter and parser like the one posted above… I just don’t know how to package that into a Obsidian plugin. No experience with Javascript… yet.

I’m working on a proof of concept and I’m having fun with the Obsidian API.

I was thinking to create a single obsidian note for each note taken in a book (instead of the kindle plugin that put all the notes in a note for the book).

Not sure if I’m able to made myself clear (English isn’t my first language and I have a strong headache right now).

The code itself is ugly as hell but it’s a working proof of concept GitHub - Edo78/obsidian-koreader-sync: Obsidian.md plugin to sync highlights/notes from koreader

Right now I still haven’t released it yet so if you want to test it you must follow the same instructions as if you want to develop a plugin.

I’m planning to refactor the code and made a first beta release in the weekend so if you aren’t eager to test it you can wait a few days.

1 Like

Oooo I’m very eager! But since I’m not that technical and its weekend by now, I guess I’ll wait a few days more :slight_smile:

I had some free time, so I was ahead of my schedule. As soon as they approve my [PR] (Add obsidian-koreader-sync to community plugins list by Edo78 · Pull Request #738 · obsidianmd/obsidian-releases · GitHub) my plugin can be installed like any other community plugin.

BTW, I only have Linux, so I can’t test it with other operating systems (I’m pretty sure it shouldn’t have any major problems on Mac but I have no idea how it might behave on Windows).

Anyway any feedback will be welcomed

2 Likes

Perfect! I would be able to test it on Mac and Windows this weekend.

I took a look at the GitHub ReadMe. Will the plug-in generate a note for each highlight/note made in Koreader or a new note for each book with all associated highlights?

1 Like

The plugin KOReader Sync is now available :sunglasses:

Right now it generate an obsidian note for each note in koreader so a single book can have multiple notes.

Do you prefer a single big note for each book?

1 Like

Thank you very much for this. I’ve tested it with my rather large KoReader library that I use Syncthing to sync between multiple devices. Just pointed the plugin at the Sync folder, and setup the destination for the notes. Worked just as needed, and now I can read on other devices, click one button, and know the things I’ve highlighted will be captured/noted in Obsidian for later combination with other notes.

I’m fine with separate files vs one big file, since I don’t think the management of updating notes in the file is going to ever be a “nice” experience, my idea is to just link these extracted notes from other actual notes with my thoughts (and combine multiple together if I need to).

1 Like

An happy user is a great reward, thank you.

BTW I already found a bug. If the title of the book contains “forbidden” chars (eg. \ / : ) then Obsidian thrown an error if you click on it to create a note.

If you have any issues or suggestions you are more than welcome to report them Issues · Edo78/obsidian-koreader-sync · GitHub

I released a new version with a breaking change.
All the old notes have to be removed or they will be duplicated. I’m really sorry about this but now the name of the note can be freely changed.

Hi there, I’m using KoReader on an Android phone, is this plugin compatible? Clicking the button doesn’t do anything - is this because my phone isn’t mounted as a drive?

It should works … I’m not sure about the right path to have in the settings …
If your are you on linux/mac you can try:
find [path] -iname metadata.\*.lua (replace [path] with the path you use in the settings)
This way you can check if it’s right and if the system can find those files.