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 10-26-2015, 08:35 PM   #1
loviedovie
Addict
loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.
 
Posts: 293
Karma: 2096562
Join Date: Nov 2014
Device: bookeen
Syncthing for Kobo?

Hi

I use Syncthing on my Android and Linux devices and it works well as open source alternative sync tool.

There is already an arm build and I am wondering if anyone is skilled and willing enough to port Syncthing to Kobo. Syncthing does not require an interface because it runs a small web server for the interface so all we need is a working binary.


Having ST running on Kobo means that we could have an alternative way of sharing and syncing our books, settings etc.

Naturally running a sync app all the time is no good option for an erader due to battery concerns. However the user can run and quit as she wishes, or it can run as a service that starts only when there is wifi around.

Anyway it is an idea.

https://syncthing.net/

Last edited by loviedovie; 10-26-2015 at 08:39 PM.
loviedovie is offline   Reply With Quote
Old 10-27-2015, 10:57 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,418
Karma: 85000000
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
What's wrong with the ARM build they publish?

For an embedded device you want a static build, which is exactly what they provide. And it's armv5, so it should work on any devices out there.
eschwartz is offline   Reply With Quote
Advert
Old 10-28-2015, 10:19 AM   #3
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 4,442
Karma: 6900000
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
If it has advantages over the current "Progress Sync" and/or "Zsync" plugins, or if it might be a useful addition, you should consider contacting the GitHub Koreader team.

Luck;
Ken

P.S.; Koreader runs on, and can sync with, Kindle, Kobo, Pocketbook, and an expanding number of Android devices. (There is no actual "list", as far as I know.)

Last edited by Ken Maltby; 10-28-2015 at 11:43 AM.
Ken Maltby is offline   Reply With Quote
Old 10-28-2015, 11:07 AM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 11,878
Karma: 21070416
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O & Forma
Also, what's wrong with rsync? (I know, I'm repeating myself here, but rsync is great ;D).
NiLuJe is offline   Reply With Quote
Old 10-28-2015, 11:19 AM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,418
Karma: 85000000
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by NiLuJe View Post
Also, what's wrong with rsync? (I know, I'm repeating myself here, but rsync is great ;D).
rsync is amazing... as long as you are willing to spend the time to set it up.

Which isn't very difficult or long, but doesn't allow one to optimize their laziness.
Also, GUIs are shiny.
eschwartz is offline   Reply With Quote
Advert
Old 10-28-2015, 11:26 AM   #6
loviedovie
Addict
loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.
 
Posts: 293
Karma: 2096562
Join Date: Nov 2014
Device: bookeen
@eschwartz

How can I run it on Kobo?

Rsync and Unison are good but Syncthing is bidirectional(nodes can publish their own changes which triggers scans and delivery on nodes) and can find nodes by its own(through discovery server).

Probably the web browser on Kobo is sufficient to use Syncthing's web interface.

@Ken

ST is a general purpose sync tool, it can sync anything. As far as I understand KR syncs only metadata. I use Zsync already and I love it.

Last edited by loviedovie; 10-28-2015 at 11:33 AM.
loviedovie is offline   Reply With Quote
Old 10-28-2015, 12:45 PM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,418
Karma: 85000000
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
I would assume so, certainly.

It doesn't need to be "ported", it already runs (or certainly should, though I can't testify in court to it ) on Kobo devices.

Since it runs a web server for it's GUI, it is even less likely that it will do anything weird with the window manager (can't think why it would anyway, but who knows?)


So... have you tried it?
eschwartz is offline   Reply With Quote
Old 10-28-2015, 08:56 PM   #8
loviedovie
Addict
loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.
 
Posts: 293
Karma: 2096562
Join Date: Nov 2014
Device: bookeen
Quote:
Originally Posted by eschwartz View Post
I would assume so, certainly.

It doesn't need to be "ported", it already runs (or certainly should, though I can't testify in court to it ) on Kobo devices.

Since it runs a web server for it's GUI, it is even less likely that it will do anything weird with the window manager (can't think why it would anyway, but who knows?)


So... have you tried it?
If I knew how to run binaries on Kobo, I could try
loviedovie is offline   Reply With Quote
Old 10-28-2015, 10:45 PM   #9
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,418
Karma: 85000000
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Um, then why do you expect porting things to help?
Or why not just say in the first place -- how can I run this on a Kobo?

On my Kindle, it is easy to create a KUAL menu extension which runs a shell command -- already used for several GUI apps.

I assume the Kobo world has some similar functionality, though having never owned a Kobo, I haven't got a clue what the specific implementation details are.
eschwartz is offline   Reply With Quote
Old 10-28-2015, 11:22 PM   #10
loviedovie
Addict
loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.
 
Posts: 293
Karma: 2096562
Join Date: Nov 2014
Device: bookeen
Quote:
Originally Posted by eschwartz View Post
Um, then why do you expect porting things to help?
Or why not just say in the first place -- how can I run this on a Kobo?

I assumed that porting to Kobo meant integrating it with Kobo.

Last edited by loviedovie; 10-28-2015 at 11:25 PM.
loviedovie is offline   Reply With Quote
Old 10-28-2015, 11:44 PM   #11
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,184
Karma: 5158386
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: H2O, StoryHD, PW4
Since you're interested in it you should make it :-)
frostschutz is offline   Reply With Quote
Old 10-29-2015, 12:33 AM   #12
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,418
Karma: 85000000
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by loviedovie View Post
I assumed that porting to Kobo meant integrating it with Kobo.
"porting" traditionally means modifying the source code to compile on another platform.

You don't need to "port" an application just to wrap it in an integration launcher.


If I wanted to use Syncthing on a Kindle, I'd wrap it in a KUAL (Kindle Unified Application Launcher) extension, just some basic JSON describing the shell commands available. I would imagine it works as-is.
Perhaps it would be necessary to modify some iptables rules.


Why don't you investigate what it takes to create a graphical launcher for an application on the Kindle?
Maybe the "Kobo Start Menu" could help, sounds like it does a similar job to KUAL.
eschwartz is offline   Reply With Quote
Old 10-29-2015, 12:57 AM   #13
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 11,405
Karma: 65600197
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
I will admit I'm not sure what purpose this would serve unless the user was using an alternate reader program on the Kobo. Yes one could sync DRM free epubs to a different device but with the Kobo reader (Nickel) settings, bookmarks etc are stored in a database, not in files in the filesystem.
PeterT is offline   Reply With Quote
Old 10-29-2015, 05:17 AM   #14
gummihuhn
Enthusiast
gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.
 
Posts: 35
Karma: 28904
Join Date: Aug 2015
Device: none
Here are some instructions for setting up Syncthing on a Kindle Touch:
Setup Syncthing on Kindle Touch.

I exclusively use KOReader/KSM on my Kobo Glo, and am a heavy user of KOReader on my Nexus 7. I use Syncthing to sync my books and pdfs (among other things) between the Nexus 7 and a laptop and a desktop. I would find it very useful to sync the Kobo in this way as well.

I am busy with other projects at the moment but this idea seems worth looking into to me.
gummihuhn is offline   Reply With Quote
Old 01-19-2016, 05:48 AM   #15
gummihuhn
Enthusiast
gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.gummihuhn solves Fermatís last theorem while doing the crossword.
 
Posts: 35
Karma: 28904
Join Date: Aug 2015
Device: none
I still hope to eventually try to get Syncthing working natively on the Kobo for true automatic wireless syncing. (Though if someone gets to this sooner than I let us know!) For now, though, I thought I'd point out that it is relatively easy to use Syncthing to automatically sync a Kobo with the books (and news, pdfs, etc) on a computer whenever they are connected via a USB cable.

[As I side note, I use a simple script to automatically download to my laptop (from http://fivefilters.org) an epub of news stories and other web pages that I want to read. I know Calibre has similar functionality but I prefer to have the stories/pages in individual epubs rather than all of them together in one document. These downloaded epubs get synced in the same way as my books, to a separate folder, using Syncthing. The end result is that I get a feature similar to Pocket (which is built in to the stock Kobo software) synced to all devices, but I never have to leave Koreader to use it.]

The key to getting Syncthing set up for the Kobo is to run two separate sync profiles on the same computer, one for your computer (in my case my laptop) and one for your Kobo. Simply install Syncthing for your operating system and generate the two configurations from the command line:
Code:
syncthing -generate=<dir>
where <dir> is the path to the directory you want to use for each profile.
for example on BSD or Linux:
Code:
syncthing -generate /home/username/.config/syncthing-laptop
syncthing -generate /home/username/.config/syncthing-kobo
Now add the two instances of syncthing to your startup items (still using example profile locations above):
Code:
syncthing -no-browser -home="/home/username/.config/syncthing-laptop" 
syncthing -no-browser -home="/home/username/.config/syncthing-kobo"
See http://docs.syncthing.net/users/syncthing.html for further documentation.

Now you can configure what should be synced via a web browser interface. You just need to know the GUI interface port. The default is 8384, so if you open your web browser to http://127.0.0.1:8384 or http://localhost:8384 you should see the first profile that you generated above. To find the other port, look in the folder you specified above and look at the second config.xml file that was generated, eg, /home/username/.config/syncthing-kobo/config.xml

In the browser, for each of the profiles, add the directories you'd like to sync between your computer and your Kobo. If you've set it up properly, when you connect your computer to the Kobo via a USB cable, the specified directories will sync automatically-- no manual intervention required. It just works.

As mentioned, I'd eventually like to get Syncthing working directly on the Kobo so that this can be done wirelessly, but the above approach has made life much simpler for me. I just connect the Kobo to my computer once a day, and all my news (and books, pdfs, etc) are there for me without me having to leave Koreader or mess with a third-party service like Pocket.

I have only tried this approach with my Kobo Glo, but it should work with any device that supports file transfers via USB. Of course Android devices can just use the Syncthing app and sync wirelessly.
gummihuhn 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
New Kobo User becomes burned EX-Kobo user aka KOBO is horrible tvuongpham Kobo Reader 140 09-18-2015 08:42 AM
Changing fonts issue on Kobo Aura HD/Kobo Glo [PROBLEM SOLVED] Dr. Drib Kobo Reader 19 05-13-2014 04:35 PM
Glo How to import reading Life Statistics from Kobo Touch to Kobo Glo? the_m Kobo Reader 5 12-13-2012 03:40 PM
$25 gift card w. purchase of Kobo Touch or Kobo Vox at Frys sufue Deals and Resources (No Self-Promotion or Affiliate Links) 0 07-15-2012 10:39 AM
Touch Kobo Touch defective after 3 months and Kobo Customer Support useless shaf Kobo Reader 5 12-04-2011 05:10 PM


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


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