Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > PocketBook > PocketBook Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-11-2024, 11:39 AM   #46
llaumgui
Member
llaumgui began at the beginning.
 
llaumgui's Avatar
 
Posts: 16
Karma: 10
Join Date: Mar 2024
Location: Prades le Lez
Device: Vivlio Light HD (PocketBook Verse pro)
Yes, for the 2 questions.
llaumgui is offline   Reply With Quote
Old 03-11-2024, 12:03 PM   #47
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,201
Karma: 10057265
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Does the book in question open with koreader as default when you click on it from the Pocketbook library?

If not, long-press on the book and choose:
Open With > koreader.app

Then reboot your device. Once rebooted select the book from the pocketbook library again and make sure it starts with koreader. Then see if progress bar is being updated.

If it still isn't working after this then I'm afraid I'm out of ideas.
neil_swann80 is online now   Reply With Quote
Advert
Old 03-11-2024, 04:15 PM   #48
llaumgui
Member
llaumgui began at the beginning.
 
llaumgui's Avatar
 
Posts: 16
Karma: 10
Join Date: Mar 2024
Location: Prades le Lez
Device: Vivlio Light HD (PocketBook Verse pro)
Hum... Same issue... Perhaps, it's because I have renamed my Default profile on PocketBook ? database path is not the same ?
llaumgui is offline   Reply With Quote
Old 03-11-2024, 11:04 PM   #49
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,201
Karma: 10057265
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Quote:
Originally Posted by llaumgui View Post
Hum... Same issue... Perhaps, it's because I have renamed my Default profile on PocketBook ? database path is not the same ?
If the database path has changed you'll need to correct line 14 of main.lua:
Code:
local pocketbookDbConn = SQ3.open("/mnt/ext1/system/explorer-3/explorer-3.db")
neil_swann80 is online now   Reply With Quote
Old 03-12-2024, 03:26 AM   #50
llaumgui
Member
llaumgui began at the beginning.
 
llaumgui's Avatar
 
Posts: 16
Karma: 10
Join Date: Mar 2024
Location: Prades le Lez
Device: Vivlio Light HD (PocketBook Verse pro)
Hi,

I have /mnt/ext1/system/profiles/Guillaume/config/explorer-3... But no explorer-3.db inside...

In /mnt/ext1/system/explorer-3, I have a explorer-3.db and a explorer-3.db.lock...
llaumgui is offline   Reply With Quote
Advert
Old 03-12-2024, 04:32 AM   #51
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,201
Karma: 10057265
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
I'm happy to play around with profiles on my device at some point (something I've never set before) to see if I can figure it out.

Until then, does anybody here have a solution or idea how to proceed?
neil_swann80 is online now   Reply With Quote
Old 03-12-2024, 05:32 AM   #52
llaumgui
Member
llaumgui began at the beginning.
 
llaumgui's Avatar
 
Posts: 16
Karma: 10
Join Date: Mar 2024
Location: Prades le Lez
Device: Vivlio Light HD (PocketBook Verse pro)
And remove .lock can be solution ?
llaumgui is offline   Reply With Quote
Old 03-12-2024, 05:37 AM   #53
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,201
Karma: 10057265
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Quote:
Originally Posted by llaumgui View Post
And remove .lock can be solution ?
I'm not sure, might be an encrypted and profile specific part of the database.
How big is the .lock file compared to the standard .db?

You could try renaming this file and rebooting... but at your own peril as I have no idea what effect it will have on your database and read history/progress etc. (Renaming it again afterwards may not restore lost functionality).

Unless you're in a rush, wait for me to test and mess up my own device!

Last edited by neil_swann80; 03-12-2024 at 05:40 AM.
neil_swann80 is online now   Reply With Quote
Old 03-12-2024, 01:46 PM   #54
jrw174
Connoisseur
jrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the rough
 
Posts: 78
Karma: 7126
Join Date: May 2023
Device: PocketBook Era
I'm not able to check at the moment. But not having explorer db in the profiles folder leads me to be believe the db is global. Must be an identifier in the db that points to specific profile. My best guess.

The lock file shouldn't matter. But I could be wrong
jrw174 is offline   Reply With Quote
Old 03-13-2024, 03:48 AM   #55
llaumgui
Member
llaumgui began at the beginning.
 
llaumgui's Avatar
 
Posts: 16
Karma: 10
Join Date: Mar 2024
Location: Prades le Lez
Device: Vivlio Light HD (PocketBook Verse pro)
Quote:
Originally Posted by jrw174 View Post
Must be an identifier in the db that points to specific profile. My best guess.
Good remark ! If I check: https://github.com/ckilb/pocketbooks...#L90C14-L90C67

Code:
    local sql = [[
            REPLACE INTO books_settings
            (bookid, profileid, cpage, npage, completed, opentime)
            VALUES (?, 1, ?, ?, ?, ?)
        ]]
profileid is hardcoded... The question is now how to find my profileid...
llaumgui is offline   Reply With Quote
Old 03-13-2024, 04:45 AM   #56
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,201
Karma: 10057265
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Code:
VALUES (?, 1, ?, ?, ?, ?)
The 1 here is the profile ID number. I've changed this on the plugin, restarted and confirmed sync no longer works. Set it back to 1, restarted koreader, sync works again.

Using the pbterm terminal emulator app on my device if I run:
Code:
id -un
I get username: reader
returned, which is the default profile.

Code:
id -u
returns: 101
(So just last character of that used?)

Perhaps try the above two commands on your device and try changing the koplugin file accordingly?

EDIT... NOPE... didn't work! - same values even in a different profile.

Last edited by neil_swann80; 03-13-2024 at 04:58 AM.
neil_swann80 is online now   Reply With Quote
Old 03-13-2024, 05:08 AM   #57
llaumgui
Member
llaumgui began at the beginning.
 
llaumgui's Avatar
 
Posts: 16
Karma: 10
Join Date: Mar 2024
Location: Prades le Lez
Device: Vivlio Light HD (PocketBook Verse pro)
id return the unix user id ? Not the PocketBook profilId. For my all profil use same unix id.
llaumgui is offline   Reply With Quote
Old 03-13-2024, 05:33 AM   #58
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,201
Karma: 10057265
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Quote:
Originally Posted by llaumgui View Post
id return the unix user id ? Not the PocketBook profilId. For my all profil use same unix id.
Yeah, I found the same. I updated my post you may have missed it.

Need a way to determine the reader profileid then...
neil_swann80 is online now   Reply With Quote
Old 03-13-2024, 06:08 AM   #59
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,201
Karma: 10057265
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
I've viewed the SQL for my explorer-3.db...

I have 3 profiles listed in there:
Code:
id   name
1    default
2    neil
3    test
I created the "neil" profile and deleted it, but it still shows in the database.

I set "test" as the active profile and modified the koplugin profileid to 3 and it works!!!

So, if you have only created one profile, yours should be 2.

If you want to view your own database I used the portable version from HERE
See attached - open the .db in the app, then: Browse data > Table: Profiles

The plugin will need updating to check the current active profile rather than assuming default.
/mnt/ext1/system/profiles/.current will direct to the active profile, so you can get the name easy enough. Will need an sql query to get the profileid number from the name I guess.
Attached Thumbnails
Click image for larger version

Name:	DB_Browser.jpg
Views:	23
Size:	22.5 KB
ID:	206867  

Last edited by neil_swann80; 03-13-2024 at 06:35 AM.
neil_swann80 is online now   Reply With Quote
Old 03-13-2024, 09:37 AM   #60
llaumgui
Member
llaumgui began at the beginning.
 
llaumgui's Avatar
 
Posts: 16
Karma: 10
Join Date: Mar 2024
Location: Prades le Lez
Device: Vivlio Light HD (PocketBook Verse pro)
Quote:
Originally Posted by neil_swann80 View Post
The plugin will need updating to check the current active profile rather than assuming default.
Like that:

Code:
function PocketbookSync:getProfilId()
    local file = io.open("/mnt/ext1/system/profiles/.current", "r")
    if file then
        local content = file:read("*all")
        file:close()
        local profileId = tonumber(content)
        if profileId then
            return profileId
        else
            return 1
        end
    else
        return 1
    end
end
llaumgui is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sync KOReader progress with Boox Library Geremia Onyx Boox 1 11-14-2022 06:55 AM
Progress sync between koreader and ios Joretapo Kobo Reader 5 10-26-2020 07:21 PM
Looking for an offline method to sync book highlights/notes on KOReader kokaros Kindle Developer's Corner 6 03-25-2020 12:35 PM
How can I change KOReader password for Progress Sync? frittatahubris KOReader 6 02-09-2020 07:39 AM
Aura H2O KSM Wifi keeps turning off / Koreader progress sync tayseidel Kobo Developer's Corner 1 12-24-2015 08:27 PM


All times are GMT -4. The time now is 11:16 AM.


MobileRead.com is a privately owned, operated and funded community.