Allow users to configure the URL of the sync server #133

Closed
dsnopek opened this Issue Nov 27, 2013 · 10 comments

Comments

Projects
None yet
9 participants
@dsnopek

dsnopek commented Nov 27, 2013

There is a personal Anki sync server available from here:

https://github.com/dsnopek/anki-sync-server

Users of the Anki desktop app can sync against it instead of AnkiWeb by creating a special add-on. However, AnkiDroid has the URL for AnkiWeb hardcoded!

It'd be great to allow users to configure the URL of the sync server that they wish to use. There's already an issue for this on Google Code, but it was been marked as "WontFix":

http://code.google.com/p/ankidroid/issues/detail?id=154

I'd like to re-open this discussion is possible. :-)

I've been running a personal sync server based on this code on Bibliobird.com for almost 3 years (will be in December) and I've deployed it for client projects as well. The code's not perfect but it definitely works enough to be useful for many people!

I'd be happy to help with code too, so long as I can get a little direction on where the maintainers think this should be in the application and if they'd even consider merging this feature.

Thanks!

@SenorFusion

This comment has been minimized.

Show comment Hide comment
@SenorFusion

SenorFusion Dec 3, 2013

I am only commenting to voice my support for this feature.

Users appreciate that AnkiDroid is open source and I would love to have control over my entire Anki ecosystem. I appreciate that the AnkiWeb service offered for free!!! but it is a bit of a black box, with rights reserved to do almost anything with our decks. (Which are quite a personal thing when you think about it.)

This seems like a simple and obvious addition to AnkDroid

dnsopek thanks for your work on this!

Ankidroid maintainers - thanks for your consideration on this issue

I am only commenting to voice my support for this feature.

Users appreciate that AnkiDroid is open source and I would love to have control over my entire Anki ecosystem. I appreciate that the AnkiWeb service offered for free!!! but it is a bit of a black box, with rights reserved to do almost anything with our decks. (Which are quite a personal thing when you think about it.)

This seems like a simple and obvious addition to AnkDroid

dnsopek thanks for your work on this!

Ankidroid maintainers - thanks for your consideration on this issue

@emhj

This comment has been minimized.

Show comment Hide comment
@emhj

emhj Dec 3, 2013

I am interested in working on this feature, though unfortunately many other
small projects have been eating into my time recently. If anyone decides
to take this feature on, I'd be happy to collaborate. It seems like it
should be relatively straightforward.

Is any sort of authentication necessary? If so, what?

Best,
Eric

On Tue, Dec 3, 2013 at 11:40 AM, SenorFusion notifications@github.comwrote:

I am only commenting to voice my support for this feature.

Users appreciate that AnkiDroid is open source and I would love to have
control over my entire Anki ecosystem. I appreciate that the AnkiWeb
service offered for free!!! but it is a bit of a black box, with rights
reserved to do almost anything with our decks. (Which are quite a personal
thing when you think about it.)

This seems like a simple and obvious addition to AnkDroid

dnsopek thanks for your work on this!

Ankidroid maintainers - thanks for your consideration on this issue


Reply to this email directly or view it on GitHubhttps://github.com/ankidroid/Anki-Android/issues/133#issuecomment-29726318
.

emhj commented Dec 3, 2013

I am interested in working on this feature, though unfortunately many other
small projects have been eating into my time recently. If anyone decides
to take this feature on, I'd be happy to collaborate. It seems like it
should be relatively straightforward.

Is any sort of authentication necessary? If so, what?

Best,
Eric

On Tue, Dec 3, 2013 at 11:40 AM, SenorFusion notifications@github.comwrote:

I am only commenting to voice my support for this feature.

Users appreciate that AnkiDroid is open source and I would love to have
control over my entire Anki ecosystem. I appreciate that the AnkiWeb
service offered for free!!! but it is a bit of a black box, with rights
reserved to do almost anything with our decks. (Which are quite a personal
thing when you think about it.)

This seems like a simple and obvious addition to AnkDroid

dnsopek thanks for your work on this!

Ankidroid maintainers - thanks for your consideration on this issue


Reply to this email directly or view it on GitHubhttps://github.com/ankidroid/Anki-Android/issues/133#issuecomment-29726318
.

@jdoe0

This comment has been minimized.

Show comment Hide comment
@jdoe0

jdoe0 Dec 3, 2013

Authentication is done exactly the same way as AnkiWeb. Dsnopek's server works almost exactly like AnkiWeb. Actually, I've successfully patched AnkiDroid to work with Dsnopek's server with minimal changes. Mostly just replacing SYNC_URL and changing the port.

jdoe0 commented Dec 3, 2013

Authentication is done exactly the same way as AnkiWeb. Dsnopek's server works almost exactly like AnkiWeb. Actually, I've successfully patched AnkiDroid to work with Dsnopek's server with minimal changes. Mostly just replacing SYNC_URL and changing the port.

@lpefferkorn

This comment has been minimized.

Show comment Hide comment
@lpefferkorn

lpefferkorn Dec 26, 2013

This feature would be greatly appreciated ! 👍

This feature would be greatly appreciated ! 👍

@nyl2002

This comment has been minimized.

Show comment Hide comment
@nyl2002

nyl2002 Jan 17, 2014

Did anyone get AnkiDroid to work as jdoe0 described? Is changing the SYNC_URL and the port enough? Thanks.

nyl2002 commented Jan 17, 2014

Did anyone get AnkiDroid to work as jdoe0 described? Is changing the SYNC_URL and the port enough? Thanks.

@dsnopek

This comment has been minimized.

Show comment Hide comment
@dsnopek

dsnopek Jan 17, 2014

@nyl2002 I haven't tried it yet, but I'm pretty sure that is enough! The Anki Server uses the exact same protocol as AnkiWeb and that's all that's necessary for the Anki desktop client to work with Anki Server. (FYI, we accomplish this by actually embedding the Anki desktop clients source code in the Anki Server ;-))

dsnopek commented Jan 17, 2014

@nyl2002 I haven't tried it yet, but I'm pretty sure that is enough! The Anki Server uses the exact same protocol as AnkiWeb and that's all that's necessary for the Anki desktop client to work with Anki Server. (FYI, we accomplish this by actually embedding the Anki desktop clients source code in the Anki Server ;-))

@nyl2002

This comment has been minimized.

Show comment Hide comment
@nyl2002

nyl2002 Jan 22, 2014

Thanks David. I get a runtime exception at com.ichi2.libanki.sync.Syncer.sync(Syncer.java:106) because the string [1390389686270,1390389686270,0,1390410721,0] coming from the server cannot be converted to JSONObject. Do you (or anybody else) have any idea why this would happen and how to fix it?
Versions: Ankidroid 2.0.3. and AnkiServer 2.0.5.

nyl2002 commented Jan 22, 2014

Thanks David. I get a runtime exception at com.ichi2.libanki.sync.Syncer.sync(Syncer.java:106) because the string [1390389686270,1390389686270,0,1390410721,0] coming from the server cannot be converted to JSONObject. Do you (or anybody else) have any idea why this would happen and how to fix it?
Versions: Ankidroid 2.0.3. and AnkiServer 2.0.5.

@forkrul

This comment has been minimized.

Show comment Hide comment
@forkrul

forkrul Mar 5, 2014

This feature would be amazing.

forkrul commented Mar 5, 2014

This feature would be amazing.

@spinus

This comment has been minimized.

Show comment Hide comment
@spinus

spinus Mar 5, 2014

+1 for this feature.

spinus commented Mar 5, 2014

+1 for this feature.

@nicolas-raoul

This comment has been minimized.

Show comment Hide comment
@nicolas-raoul

nicolas-raoul Mar 12, 2014

Member

Hello all,
Issues/features should be posted to https://code.google.com/p/ankidroid/
We will now disable the tracker on Github, so that issue reporting becomes less confusing.

Please move all info to this issue:
http://code.google.com/p/ankidroid/issues/detail?id=154

Thanks for your feedback!
Nicolas Raoul

Member

nicolas-raoul commented Mar 12, 2014

Hello all,
Issues/features should be posted to https://code.google.com/p/ankidroid/
We will now disable the tracker on Github, so that issue reporting becomes less confusing.

Please move all info to this issue:
http://code.google.com/p/ankidroid/issues/detail?id=154

Thanks for your feedback!
Nicolas Raoul

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment