View Single Post
Old 10-18-2022, 05:39 AM   #15
qkqw
Connoisseur
qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.
 
Posts: 67
Karma: 143000
Join Date: Apr 2022
Device: Kobo Libra 2
Quote:
Originally Posted by vinnyt View Post
Looking much better. However I'm still seeing an issue with dogears bubbling to the top of the output even though it belongs to a later chapter/subchapter. Possibly a bug in the query for chapter identification for dogears.
It looks fine with my books. Does it happen for all your books or just a single one?

Quote:
Originally Posted by vinnyt View Post
Also here is an updated config script. I added a 'sleep 5' just before the http call in the notes.sh script. This is to make sure there is enough time for wifi to connect. The last curl command returns an error and the main NM config waits upto to 10 seconds for everything to complete.
Ideally we'd have to use a ping test or similar to find out if an connection is working (e.g. https://github.com/fsantini/KoboClou...get.sh#L21-L37).

The sleep however doesn't have to be included in the script, as NickelMenu supports that too:

Code:
menu_item :main :Sync Annotations :nickel_wifi :autoconnect
chain_success :cmd_output :9999:quiet:sleep 5
chain_success :cmd_output :9999:quiet:/mnt/onboard/.adds/notes/notes.sh
chain_success:skip:2
chain_failure :dbg_toast :Failed to sync notes!
chain_always:skip:-1
chain_success :dbg_toast :Notes Sync Complete!
You might also want to hook this script into KoboCloud or run it manually, hence a sleep 5 inside the script is IMHO not the best approach.
qkqw is offline   Reply With Quote