|  07-28-2022, 02:01 PM | #1 | 
| Connoisseur  Posts: 82 Karma: 10 Join Date: Jul 2017 Location: Boston Device: Kobo Libra 2 | 
				
				How to force KoboCloud to sync followed by AutoShelf
			 
			
			I'm using KoboCloud to sync with Google Drive and AutoShelf to organize the content. It works to manually tap on the sync icon, wait a while, and then connect/disconnect USB to trigger AutoShelf, but I'd like to have a single action from NickelMenu to cause all this to happen. I currently have the following: Code: menu_item :main :Cloud Rebuild :cmd_spawn :/usr/local/kobocloud/get.sh chain_success :cmd_spawn :/usr/local/AutoShelf/autoshelf.sh Can anyone suggest how to accomplish this? | 
|   |   | 
|  07-28-2022, 03:13 PM | #2 | 
| Connoisseur  Posts: 82 Karma: 10 Join Date: Jul 2017 Location: Boston Device: Kobo Libra 2 | 
			
			I also tried this code Code: qndb -t 60000 -s pfmDoneProcessing -m pfmRescanBooksFull echo usb plug add >>/tmp/nickel-hardware-status sleep 10 echo usb plug remove >>/tmp/nickel-hardware-status | 
|   |   | 
|  08-06-2022, 11:38 AM | #3 | 
| Connoisseur            Posts: 67 Karma: 143000 Join Date: Apr 2022 Device: Kobo Libra 2 | 
			
			According to this issue it does not seem to be possible: https://github.com/pgaskin/NickelMenu/issues/129 Although you could create a wrapper script which calls the two shell scripts? | 
|   |   | 
|  08-08-2022, 09:28 AM | #4 | 
| Connoisseur  Posts: 82 Karma: 10 Join Date: Jul 2017 Location: Boston Device: Kobo Libra 2 | 
			
			Thanks -- I wrote a wrapper script that works. I also had to add a new shell script for Kobocloud so it doesn't fork immediately on execution. My script calls a non-forking Kobocloud script, waits for that to finish, then simulates USB connect/disconnect to force an autoshelf. I was also trying to figure out if there is some way to run autoshelf directly without having to trigger a USB toggle, but if I just run /usr/local/AutoShelf/autoshelf.sh, nothing happens. | 
|   |   | 
|  | 
| Tags | 
| autoshelf, kobo, kobocloud, nickelmenu | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Aura H2O AutoShelf beta | frostschutz | Kobo Developer's Corner | 236 | 09-17-2025 12:36 PM | 
| Force calibre portable to sync database without closing the program? | AntonGolubev | Library Management | 6 | 08-17-2018 05:29 AM | 
| Glo Problem on autoshelf of glo hd | 2023001 | Kobo Reader | 1 | 05-12-2017 03:50 PM | 
| Touch Any way to force a download sync? | Matth79 | Barnes & Noble NOOK | 0 | 12-21-2014 11:50 AM | 
| Force last page read sync from script? | dirgeon | Kindle Developer's Corner | 0 | 02-09-2013 08:37 AM |