Skip to content

Conversation

@imax9000
Copy link

@imax9000 imax9000 commented Aug 6, 2024

Tested this on FW 4.38.23038 on my Kobo Libra 2.

@imax9000 imax9000 requested a review from pgaskin as a code owner August 6, 2024 18:32
@liups233
Copy link

liups233 commented Aug 11, 2024

There are some bugs on Clara BW version 4.39.23027. I can see Google Drive and Dropbox menus on my ereader, but I cannot login. When I click "Get Started", there is only a blank screen.

(Not my network problem, because I can access Google Drive with internal browser)

Updated on Dec 9, 2024: It seems not working on FW version 4.41.23145

@jillmess
Copy link

There are some bugs on Clara BW version 4.39.23027. I can see Google Drive and Dropbox menus on my ereader, but I cannot login. When I click "Get Started", there is only a blank screen.

(Not my network problem, because I can access Google Drive with internal browser)

I have enabled Google Drive on my Libra 2 version 4.38.23038 using this patch but I did have to edit eReader.conf per info found at the bottom of this: pgaskin/NickelMenu#143 to get beyond the blank screen for initial setup.
I already had DropBox setup via NickelMenu so it just worked without any further changes.

@liups233
Copy link

There are some bugs on Clara BW version 4.39.23027. I can see Google Drive and Dropbox menus on my ereader, but I cannot login. When I click "Get Started", there is only a blank screen.
(Not my network problem, because I can access Google Drive with internal browser)

I have enabled Google Drive on my Libra 2 version 4.38.23038 using this patch but I did have to edit eReader.conf per info found at the bottom of this: pgaskin/NickelMenu#143 to get beyond the blank screen for initial setup. I already had DropBox setup via NickelMenu so it just worked without any further changes.

Very useful. Thank you. I just need to edit .kobo/Kobo/Kobo ereader.conf,
add https://authorize.kobo.com/{region}/{language}/LinkDropbox after dropbox_link_account_poll=, and
add https://authorize.kobo.com/{region}/{language}/linkcloudstorage/provider/google_drive after googledrive_link_account_start=

@imax9000
Copy link
Author

I had that URL copied over from Kobo Sage from when I was trying to get it working via NickelMenu, so I did not notice a potential problem. I've dug around some more, and it seems that these values aren't shipped in the firmware images, but rather they're fetched during initial device setup via an authenticated request to https://storeapi.kobo.com/v1/initialization. I assume the returned chunk of JSON contains different values depending on the device model.

I'll update the patch description to include the config values necessary for the sync to actually work.

@bobf32
Copy link

bobf32 commented Nov 17, 2024

There are some bugs on Clara BW version 4.39.23027. I can see Google Drive and Dropbox menus on my ereader, but I cannot login. When I click "Get Started", there is only a blank screen.

(Not my network problem, because I can access Google Drive with internal browser)

My Clara BW is on 4.41.xxx and have the same issue. Did you ever get Dropbox working?

@liups233
Copy link

liups233 commented Nov 17, 2024

There are some bugs on Clara BW version 4.39.23027. I can see Google Drive and Dropbox menus on my ereader, but I cannot login. When I click "Get Started", there is only a blank screen.
(Not my network problem, because I can access Google Drive with internal browser)

My Clara BW is on 4.41.xxx and have the same issue. Did you ever get Dropbox working?

You can check my comment on Aug 12.

I just need to edit .kobo/Kobo/Kobo ereader.conf,
add https://authorize.kobo.com/{region}/{language}/LinkDropbox after dropbox_link_account_poll=, and
add https://authorize.kobo.com/{region}/{language}/linkcloudstorage/provider/google_drive after googledrive_link_account_start=

@bobf32
Copy link

bobf32 commented Nov 17, 2024

There are some bugs on Clara BW version 4.39.23027. I can see Google Drive and Dropbox menus on my ereader, but I cannot login. When I click "Get Started", there is only a blank screen.
(Not my network problem, because I can access Google Drive with internal browser)

My Clara BW is on 4.41.xxx and have the same issue. Did you ever get Dropbox working?

You can check my comment on Aug 12.

I just need to edit .kobo/Kobo/Kobo ereader.conf,
add https://authorize.kobo.com/{region}/{language}/LinkDropbox after dropbox_link_account_poll=, and
add https://authorize.kobo.com/{region}/{language}/linkcloudstorage/provider/google_drive after googledrive_link_account_start=

Worked beautifully, thanks.

@h734790
Copy link

h734790 commented Dec 9, 2024

Please help me understand why I cannot make this patch work.

My device is Kobo Clara BW on firmware 4.41.23145.

I have copied cloud_sync.yaml to the src\ folder, edited and enabled it and added the following line in kobopatch.yaml to the patches section:
src/cloud_sync.yaml: usr/local/Kobo/libnickel.so.1.0.0

I let all other patches in disabled state.

I have downloaded the 4.41.23145 fw, copied the zip file into src\ and modified the version number in kobopatch.yaml accordingly. The patching process runs successfully without any errors.

I have copied KoboRoot.tgz into the .kobo folder and reseted the device. It have applied tgz (it was missing from the folder after the reboot), but the syncing is not available, nothing seemed to change at all. I have also modified .kobo/Kobo/Kobo ereader.conf and set the needed value to googledrive_link_account_start, but this one keeps getting reset to the empty value after each reset.

What have I done wrong? Should I use an earlier FW and rollback my device to that one before patching?

@liups233
Copy link

liups233 commented Dec 9, 2024

Please help me understand why I cannot make this patch work.

My device is Kobo Clara BW on firmware 4.41.23145.

I have copied cloud_sync.yaml to the src\ folder, edited and enabled it and added the following line in kobopatch.yaml to the patches section: src/cloud_sync.yaml: usr/local/Kobo/libnickel.so.1.0.0

I let all other patches in disabled state.

I have downloaded the 4.41.23145 fw, copied the zip file into src\ and modified the version number in kobopatch.yaml accordingly. The patching process runs successfully without any errors.

I have copied KoboRoot.tgz into the .kobo folder and reseted the device. It have applied tgz (it was missing from the folder after the reboot), but the syncing is not available, nothing seemed to change at all. I have also modified .kobo/Kobo/Kobo ereader.conf and set the needed value to googledrive_link_account_start, but this one keeps getting reset to the empty value after each reset.

What have I done wrong? Should I use an earlier FW and rollback my device to that one before patching?

Did you see Google Drive and Dropbox icons on the reader? Also you can post a screenshot of your changed Kobo ereader.conf

@h734790
Copy link

h734790 commented Dec 9, 2024

I cannot make it on the latest firmware, either. I suppose it only works on 4.39.23027 or 4.40.23081

bobf32 wrote he succeeded with some 4.41.xxx FW. We should know the exact version number then.

@liups233
Copy link

liups233 commented Dec 9, 2024

I cannot make it on the latest firmware, either. I suppose it only works on 4.39.23027 or 4.40.23081

bobf32 wrote he succeeded with some 4.41.xxx FW. We should know the exact version number then.

Sorry. I found my Kobo has been automatically updated. I am trying to see if it works on the latest version.

@h734790
Copy link

h734790 commented Dec 9, 2024

kép_2024-12-09_160101247

@h734790
Copy link

h734790 commented Dec 9, 2024

Did you see Google Drive and Dropbox icons on the reader?

Unfortunately no. That's why I wrote that it seems nothing has changed at all.

@liups233
Copy link

liups233 commented Dec 9, 2024

Did you see Google Drive and Dropbox icons on the reader?

Unfortunately no. That's why I wrote that it seems nothing has changed at all.

I tried again on my BW with latest firmware, but I cannot see the icons. Maybe the new firmware changed something.

@h734790
Copy link

h734790 commented Dec 9, 2024

Ok, now I'm totally confused. I downgraded my Kobo Clara BW to fw 4.39.23027 and applied the patch to this version.
I can see still no Drive/Dropbox icons anywhere. :( :( :(

@h734790
Copy link

h734790 commented Dec 9, 2024

I was able to find out what the problem was: in the "Kobo eReader.conf" file, another parameter needs to be changed: kobo_googledrive_link_account_enabled have to be set to true. So, with the 4.39.23027 fw, the patch works.
Because it's not a latest FW, the autoupgrade via WIFI had to be disabled too.

@liups233
Copy link

liups233 commented Dec 9, 2024

I was able to find out what the problem was: in the "Kobo eReader.conf" file, another parameter needs to be changed: kobo_googledrive_link_account_enabled have to be set to true. So, with the 4.39.23027 fw, the patch works. Because it's not a latest FW, the autoupgrade via WIFI had to be disabled too.

I remember you can disable auto firmware update with another patch. Search for “Block WiFi firmware upgrade”

@h734790
Copy link

h734790 commented Dec 9, 2024

I remember you can disable auto firmware update with another patch. Search for “Block WiFi firmware upgrade”

Yep, it's in libnickel.so.1.0.0.yaml. I used this to disable auto upgrades.

@h734790
Copy link

h734790 commented Dec 12, 2024

Unfortunately, blocking automatic firmware updates does not work. So, as it stands, this patch is not really usable now unless you keep WIFI turned off - which would obviously make the patch pointless. :(

@obynio
Copy link

obynio commented Dec 16, 2024

@h734790 it works if you apply my patch here #137

@h734790
Copy link

h734790 commented Dec 16, 2024

@obynio Thank you! I gave up using this patch, I will use the KoboCloud script instead. It's a shame that a feature that exists in the firmware has to be enabled with hacks like this. I must say I am disappointed with Kobo book readers. On the 4-5th try I could only manage to upload my books to the reader with Calibre. One time not a single book is visible, the other time it spontaneously logs me out of my account after uploading, other time only 2-3 of the hundreds of uploaded books are visible, the collections set up in Calibre regularly remain empty on the reader, Calibre tells me every second or third connection that the database on the reader is broken and therefore communication is not possible. Etc.
(Sorry for this offtopic rant...)

@obynio
Copy link

obynio commented Dec 17, 2024

Personally never had issues. I gave up on setting up a wired calibre since it was inconvenient. I setup a web-calibre instance on my NAS with kobo-sync and my kobo are linked to it through a Tailscale mesh.

I can connect to web-calibre through any public, my calibre manga shows up along the books I've bought on kobo. Best of both worlds. It's been pretty simple to install and worked flawlessly for the last 8 months. I actually own two kobo setup the same way, and the progress is synced at night automatically.

@TomasHurtz
Copy link

I added some easy to follow instructions here - hope it helps someone.

pgaskin/NickelMenu#143 (comment)

@akzov
Copy link

akzov commented Apr 15, 2025

Used the latest firmware, Dropbox was enabled by default so all I had to change to get Google drive was:

kobo_googledrive_link_account_enabled=True
googledrive_link_account_start=https://authorize.kobo.com/{region}/{language}/linkcloudstorage/provider/google_drive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants