Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-17-2014, 11:23 PM   #1
epubfan
Member
epubfan began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jun 2013
Device: kobo touch
Kobo touch update sqllite-script

hey folks,

i installed ftp/telnet on firmware 3.0.0.1 to transfer books via wifi-ftp.
Works great but i need a script to update the sqllite database without connecting the usb-cable after transfer books via ftp...

i found this hint but it does not work:
(source: http://blog.ringerc.id.au/2011/01/en...s-to-kobo.html)

BloGollumFebruary 21, 2011 at 2:26 AM
If you add content via ftp, it is good to refresh the database to show it without having to to plug in and remove the USB, which triggers the necessary SQLite sync. The below (complete kludge of a) script mimics the USB trigger. It could be added to startup, in the way Craig outlines, so that a restart syncs, or run through telnet. Ultimately, it would be good to put it behind a key (although a script to enable WiFi with a button would be a higher priority IMV.)

#!/bin/sh
echo "\"adding\""
SN=KBN647095B46990 ACTION=add /usr/local/Kobo/udev/usb
echo "sleeping"
sleep 10
# (Prob superfluous)
echo "\"removing\""
ACTION=remove /usr/local/Kobo/udev/usb
return 0

Last edited by epubfan; 01-17-2014 at 11:25 PM.
epubfan is offline   Reply With Quote
Old 01-18-2014, 06:17 AM   #2
tshering
Guru
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 941
Karma: 297002
Join Date: Jun 2012
Device: kobo touch
Did you also try the other suggestion?
Code:
echo usb plug remove >>/tmp/nickel-hardware-status
Note also the last post:
Quote:
BloGollumJuly 27, 2011 at 6:42 AM
tjm: thanks. Others please note you have to "plug it in" first (!) echo usb plug add >> /tmp/nickel-hardware-status.

Last edited by tshering; 01-18-2014 at 06:46 AM.
tshering is offline   Reply With Quote
 
Enthusiast
Old 01-18-2014, 09:47 AM   #3
epubfan
Member
epubfan began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jun 2013
Device: kobo touch
Thanks, tshering. I haven`t seen it and it works... partly :-)
So I do this script now:

#!/bin/sh
echo usb plug add >> /tmp/nickel-hardware-status
sleep 5
echo usb plug remove >>/tmp/nickel-hardware-status

The sleep is necessary to touch on kobo the "connect" requester.
Any suggestion to add this function to the script above (so you don`t have to push the "connect" on the kobo)?

Last edited by epubfan; 01-18-2014 at 09:49 AM.
epubfan is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Touch Update Kobo Touch via external SD card andreib Kobo Reader 5 09-15-2013 04:03 AM
Kobo Touch firmware update failure crunchycookie Kobo Reader 2 05-16-2013 11:20 AM
Calibre Install/Update Script for OS X faraz Calibre 2 11-11-2012 12:16 PM
Kobo Touch update has broken Calibre created top margin DragonflyKing Conversion 3 07-20-2012 03:59 AM
Update script does not work rusHack Kindle Developer's Corner 9 06-21-2012 08:55 PM


All times are GMT -4. The time now is 05:31 PM.


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