Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 08-09-2014, 12:39 PM   #1
yali110
Junior Member
yali110 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2014
Device: Kindle Paperwhite 2
Smile Simple solution to sync files with dropdrox (and other cloud)

Kindle uses the amazon cloud to synchronlize files. When we want to send a file to kindle we need to send an email to the specific email address. Amazon will automatically convert the file format so that it can fit to the default formats supported by the original system. The conversion sometimes sucks, and we cannot send files with unsupported formats, e.g. epub. On the other hand, people usually use other cloud services such as Dropbox, Google drive or Skydev etc. This introduces a great inconvenience when we want to sync files on these cloud servers. I hereby introduce a simple solution that could sync files from any public cloud services by using bash scripts and cURL.

Checkout the code at the following link:
https://code.google.com/p/kindle-file-synchronizer/

Prerequisites:
KUAL
yali110 is offline   Reply With Quote
Old 08-09-2014, 11:20 PM   #2
chanfm
Enthusiast
chanfm began at the beginning.
 
Posts: 49
Karma: 10
Join Date: Jul 2014
Device: Kobo H2O, Kobo Glo HD, Kobo Arc, Kindle PW3
Thank you. This is interesting. Can I do the same for kobo devices?
chanfm is offline   Reply With Quote
Advert
Old 08-10-2014, 06:22 AM   #3
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Interesting, but the topic title is a bit mis-leading.

This uses cURL to copy and push remote files, not even using rsync (which is in the USBnet package) to synchronize contents that differ.

File transfer protocols do not consider (or handle) concurrent file access while the file is being changed.

True "cloud" services use their own protocol, although some may also support older file transfer protocols.

Some "cloud" services also support the older "WEBdav" protocol.
And we have a WEBdav protocol client that could be scripted at:
https://www.mobileread.com/forums/sho....php?p=2647933

With that disclaimer said, I still want to say:
Thanks!
It is a nice looking remote file access script, easy to use, small, and "just works".

Last edited by knc1; 08-10-2014 at 06:26 AM.
knc1 is offline   Reply With Quote
Old 08-10-2014, 09:50 AM   #4
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
For Cloud Service access from the command line (which implies it can be scripted), try:

For non-ARM devices (FREE != ssl/tls protected connection):
https://storagemadeeasy.com/LinuxDrive/

For Kindles (should work with NiLuJe's python install but not tested):
http://s3tools.org/s3cmd
See Also:
http://xmodulo.com/2013/06/how-to-ac...-in-linux.html

Note:
Amazon still offers a FREE "starter account" on their web services system:
http://aws.amazon.com/s3/

Which includes their supercomputer (Which is running Linux, like your Kindle is):
http://www.top500.org/site/50321
Also: http://www.top500.org/system/178321
(Yes, you can get a FREE "starter account" on that machine also.)


Maybe we should start posting our Kindle Jailbreak(s) and other things on Amazon's s3 (free) cloud with the files marked as "public".

Last edited by knc1; 08-10-2014 at 10:22 AM.
knc1 is offline   Reply With Quote
Old 08-11-2014, 11:31 PM   #5
yali110
Junior Member
yali110 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2014
Device: Kindle Paperwhite 2
I would think so if you can use KUAL
yali110 is offline   Reply With Quote
Advert
Old 08-11-2014, 11:36 PM   #6
yali110
Junior Member
yali110 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2014
Device: Kindle Paperwhite 2
Quote:
Originally Posted by knc1 View Post
Interesting, but the topic title is a bit mis-leading.

This uses cURL to copy and push remote files, not even using rsync (which is in the USBnet package) to synchronize contents that differ.

File transfer protocols do not consider (or handle) concurrent file access while the file is being changed.

True "cloud" services use their own protocol, although some may also support older file transfer protocols.

Some "cloud" services also support the older "WEBdav" protocol.
And we have a WEBdav protocol client that could be scripted at:
https://www.mobileread.com/forums/sho....php?p=2647933

With that disclaimer said, I still want to say:
Thanks!
It is a nice looking remote file access script, easy to use, small, and "just works".
Thanks, I may need change the title to "file downloader" or something?
yali110 is offline   Reply With Quote
Old 08-11-2014, 11:37 PM   #7
yali110
Junior Member
yali110 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2014
Device: Kindle Paperwhite 2
Quote:
Originally Posted by chanfm View Post
Thank you. This is interesting. Can I do the same for kobo devices?
I would think so, if you can use KUAL.
yali110 is offline   Reply With Quote
Old 08-12-2014, 05:48 AM   #8
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by yali110 View Post
Thanks, I may need change the title to "file downloader" or something?
Naw, its good just like it is.
That is why I added the details on WEBdav and Cloud Services.

If someone wants other than remote file transfer, they can use your solution as a model and just script for the other type(s) of on-line storage.

Now all in one short thread -
A working model, and links to other things that could be done.

- - - -

PS: Welcome to the forum, it is always nice to see a new contributor here.

Last edited by knc1; 08-12-2014 at 05:54 AM.
knc1 is offline   Reply With Quote
Old 08-12-2014, 04:04 PM   #9
yali110
Junior Member
yali110 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2014
Device: Kindle Paperwhite 2
Quote:
Originally Posted by knc1 View Post
Naw, its good just like it is.

PS: Welcome to the forum, it is always nice to see a new contributor here.
, I got my kindle 2 months ago, and then found this great site.
yali110 is offline   Reply With Quote
Reply

Tags
dropbox, kindle, synchronization


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My clippings sync to Amazon cloud henders254 Amazon Kindle 4 03-09-2014 02:32 PM
How to Sync Calibre with Kindle Cloud ajaxmike Library Management 2 01-01-2014 10:45 PM
Kindle Cloud Sync knc1 Kindle Developer's Corner 17 12-13-2013 01:53 PM
Aura HD Cloud sync + map functionalities wizco Kobo Reader 3 07-23-2013 10:12 PM
New reader, needs CPU and cloud sync flips01 Which one should I buy? 5 12-25-2012 07:26 PM


All times are GMT -4. The time now is 04:08 PM.


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