fsantini / KoboCloud

A set of scripts to synchronize a kobo reader with popular cloud services
Other
1k stars 97 forks source link

Sync on demand #168

Open berliozz opened 11 months ago

berliozz commented 11 months ago

Does it possible to create Nickel Menu comand that allow call KoboCloud sync and disallow autostart sync for original script? Why I request it? With new verision of KoboCloud me reader back to main screen when I wake up it. Few seconds I see open book, after it KoboCloud start sync and reader exit to Main screen.

Glennza1962 commented 11 months ago

Same for me. I wondered why my Kobo was doing that!

berliozz commented 11 months ago

Same for me. I wondered why my Kobo was doing that!

I was create the workaround.

  1. You need to create new patch, where remove kobocloud from autorun on book wake up. (You can download it here: https://disk.yandex.ru/d/hWkpHdGHHuRE_w).
  2. Install nickel menu: https://pgaskin.net/NickelMenu/
  3. Create next config: menu_item:main:Dropbox Sync:nickel_settings :enable:force_wifi chain_success:cmd_spawn:quiet:/usr/local/kobocloud/udev_program.sh chain_success:nickel_misc:rescan_books_full chain_success:nickel_settings:disable:force_wifi

The result is new menu on bottom right of main screen which contain Dropbox Sync item. That looks little bit ugly and now I try to find how to remove this menu and move it to library. Force_wifi need for wireless connection. It not enable WiFi, just force up connection. By default power management rules set device to stay disconnected.