07-16-2020, 06:44 AM | #16 |
Member
Posts: 18
Karma: 7940
Join Date: Apr 2013
Device: Kobo Glo; Kobo AuraHD; Kobo Aura One
|
After posting my last message, I also gave it a second look and found the content table. I also saw the information was there, ready to use...
Though for some reason my content table is really small, it has only the data for the last 30 days or so. Maybe I did something in the past that wiped it out. With the hard part out-of-the-way and after Quoth's minimalist post questioning why not simply use Calibre, I decided to do just that. In order to make all this work wirelessly, I use bash scripts that run in the Kobo device, which communicates through SSH to my little linux server that hosts Calibre. The scripts are called by using the excellent NickelMenu, so everything is well-integrated in the Kobo main menu. Next weekend I will try to implement some simple graphs, which will show how much was read in a specific week/month etc. These will have to be hosted outside Calibre of course. The docker suggestion was so that everyone could deploy locally, in a safe and easy way, a SSH server and some web server. But on second thought, I guess only the maniac people who are interested in stats will bother with this. A container is probably over complicating things for such small gains.... Last edited by ndriver; 07-16-2020 at 10:11 AM. |
07-16-2020, 10:54 AM | #17 | |
Enthusiast
Posts: 31
Karma: 136
Join Date: May 2020
Location: US
Device: kobo libra h20, kobo aura h20, kindle, boox nova 2
|
Quote:
I am curious about the shell script. When using the script, do you trigger it from the Kobo through the menu? (that is awesome!). So, technically I could do the same but point to my cloud server instead (cool). I am looking at the NickelMenu tool. Thanks! I mean, the data doesn't have to be pushed to my server. I could definitely put it out there as a local web app and people can use locally (saves me some cloud money). I will take a closer look at the calibre plugin. Last edited by rigogsilva; 07-16-2020 at 11:14 AM. |
|
07-16-2020, 11:12 AM | #18 |
Member
Posts: 18
Karma: 7940
Join Date: Apr 2013
Device: Kobo Glo; Kobo AuraHD; Kobo Aura One
|
Yes, you can easily call scripts by using the menu.
There are some wizards in this forum who provide us these awesome tools. Until recently I was using kfmon to run scripts, now I am using NickelMenu, which is even better and easier to use. Check this post: https://www.mobileread.com/forums/sh...d.php?t=329525 |
07-16-2020, 11:51 AM | #19 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
The content table contains at a record for each book known to the device, plus a record for each ToC entry for books actually on the device, and an extra record per internal file for kepubs. "Known to the device" is sideloaded books, purchased books (either downloaded or not), preview and recommendations. The latter are cleaned up frequently when the device is synced. If the table is small, it means there aren't many books on the device.
|
07-16-2020, 12:21 PM | #20 | |
Member
Posts: 18
Karma: 7940
Join Date: Apr 2013
Device: Kobo Glo; Kobo AuraHD; Kobo Aura One
|
Quote:
I described my situation in a misleading way. I meant the query of the content table after filtering the results of the ReadStatus column to either 1 or 2 (reading and finished). There are books I have finished a year ago, which report the correct time. Others finished very recently also seem to be correct. But some books between these periods either disappeared or are reporting a very low value. I had to repair my Kobo account at some point in the past, because there were a lot of missing covers. And I remember that it had to download a lot of books that were already in my device. Maybe it is related to that. Last edited by ndriver; 07-16-2020 at 12:49 PM. |
|
07-16-2020, 09:54 PM | #21 | |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
I'm not sure what the repair will do. It probably depends on whether it has to recreate the database entries. I think it checks everything and then replaces anything that is questionable. The latter would probably mean the reading time and related stats would be lost. |
|
07-20-2020, 02:08 PM | #22 |
Member
Posts: 18
Karma: 7940
Join Date: Apr 2013
Device: Kobo Glo; Kobo AuraHD; Kobo Aura One
|
Just for fun, I proceeded with the test of trying to implement a solution to keep an eye on and plot my reading patterns.
This is self hosted. The e-reader sends the result of a query to my PC, where it is parsed. (A shared site would not be something I would use because of the privacy issues that are inherent to that type of setup.) I can then lookup and search the results in a web page (though at the moment it is in need of a bit of styling...). After selecting the date range, a stacked bar chart is displayed, showing what and how much was read on a daily, weekly or monthly scale. Main drawbacks are that ideally the script which sends the query result to the PC should be run everyday the Kobo is used and secondly the results are only valid in scenarios where you use exclusively one device, since this data is not synced to the Kobo servers as davidfor warned on the previous post. Last edited by ndriver; 07-20-2020 at 08:57 PM. |
07-21-2020, 01:37 PM | #23 |
BLAM!
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Oh, hai, KOReader feature ^^.
|
07-22-2020, 08:18 AM | #24 | |
Member
Posts: 18
Karma: 7940
Join Date: Apr 2013
Device: Kobo Glo; Kobo AuraHD; Kobo Aura One
|
Quote:
What made me return to Nickel, if I remember correctly, was Pocket, yeah I Know...It is closed source and there is also Wallabag, but I'm so used to Pocket that I just wanted it back. Would you point me in the right direction regarding the execution of my little script over here? I would like to trigger the script just before Nickel is suspended. Is there any hook available to make that possible? Thanks for your great work. Last edited by ndriver; 07-22-2020 at 12:05 PM. |
|
07-22-2020, 02:25 PM | #25 |
BLAM!
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Not yet. Sherman is working on something that may help, but keep in mind that when a device goes to sleep, it goes to *suspend*, so that's generally a terrible trigger to do stuff, because you can't actually do stuff ;p.
|
07-22-2020, 07:09 PM | #26 | |
Guru
Posts: 869
Karma: 2676800
Join Date: Sep 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Quote:
Code:
SIGNAL :: void N3PowerWorkflowManager::aboutToSleep() SIGNAL :: void N3PowerWorkflowManager::resumingFromSleep() SIGNAL :: void N3PowerWorkflowManager::resumedFromSleep() SIGNAL :: void N3PowerWorkflowManager::aboutToPowerOff() SIGNAL :: void N3PowerWorkflowManager::aboutToReboot() |
|
07-29-2020, 11:42 AM | #27 | |
Enthusiast
Posts: 31
Karma: 136
Join Date: May 2020
Location: US
Device: kobo libra h20, kobo aura h20, kindle, boox nova 2
|
Quote:
After all the responses about private concerns for sharing data, I have decided to create something different than a website where I would need to keep users' data. I am thinking about creating a: - python pip library that will easily export the data out of kobo. I it will also get the page turns out of it since that is encoded. The pip library will decode. - support exporting data from multiple KoboReader.db files. This will be great if you have backups. - this pip library will also allow us to run notebooks in a docker container. Notebooks will provide very detail information about your reading. There are so many plots I want to do, the one you have in that picture is one of them - all data will be kept locally so no sharing of data going on. Keeping your data and having it exported from the device so you can save it. Maybe one day, I can use ndriver script to automate exporting the data automatically from kobo without a computer. |
|
07-30-2020, 10:09 AM | #28 | |
Enthusiast
Posts: 31
Karma: 136
Join Date: May 2020
Location: US
Device: kobo libra h20, kobo aura h20, kindle, boox nova 2
|
Quote:
|
|
09-01-2022, 02:42 PM | #29 | |
Junior Member
Posts: 1
Karma: 10
Join Date: Sep 2022
Device: Kobo
|
Quote:
Did you ever go anywhere with your stats in a way that it is released or something you can share? |
|
Tags |
annotations, ebook, highlights, kobo, site |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Desktop App KoboNotes.com, a new website to organize your kobo highlights and annotations | fferreira | Kobo Developer's Corner | 26 | 07-27-2020 09:13 AM |
theKoboNotes - a new website for your Kobo's highlights and annotations | fferreira | Kobo Reader | 10 | 09-30-2019 01:16 PM |
kindle forgets progress and highlights each time I open a book | Braid | Amazon Kindle | 2 | 11-27-2017 04:16 PM |
Management of annotations with Kobo and Calibre | Ziggi | Plugins | 2 | 11-13-2015 02:10 PM |
Annotations/highlights on Kobo | MHaensel | Kobo Reader | 3 | 04-05-2015 01:44 AM |