maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Sync with Google (https://talk.maemo.org/showthread.php?t=35594)

stobbsc 2009-12-08 12:35

Re: Sync with Google
 
Quote:

Originally Posted by Beun (Post 416359)
I'm surprised no one has mentioned NuevaSync as a tool to sync the N900 with Google calendar/contacts.
I have been using it to sync several devices with Google for quite some time now. And since last saturday I also use it on the N900. Works like a charm :)
Just thought I'd mention it.

you got a link for us?

thommy 2009-12-08 13:16

Re: Sync with Google
 
Quote:

Originally Posted by stobbsc (Post 416365)
you got a link for us?

http://lmgtfy.com/?q=nuevasync

petibub 2009-12-08 13:42

Re: Sync with Google
 
NuevaSync merges all google calendars to the local N900 calendar. I don't know if there is a chance to sync to multiple calendars. It is very reliable so at the moment I think this is the best what we have...

Zaheerm: how's the status of the implementation of your google sync tool?

zaheerm 2009-12-08 14:37

Re: Sync with Google
 
Quote:

Originally Posted by petibub (Post 416496)
NuevaSync merges all google calendars to the local N900 calendar. I don't know if there is a chance to sync to multiple calendars. It is very reliable so at the moment I think this is the best what we have...

Zaheerm: how's the status of the implementation of your google sync tool?

I have a command line app that works for one way sync from gcal to maemo. I am in my spare time getting a basic ui together for people to test it.

Here is a pic of 26 calendars synced from gcal to my device:

http://www.flickr.com/photos/aandza/4164018365/

Beun 2009-12-08 15:13

Re: Sync with Google
 
Quote:

Originally Posted by petibub (Post 416496)
NuevaSync merges all google calendars to the local N900 calendar. I don't know if there is a chance to sync to multiple calendars. It is very reliable so at the moment I think this is the best what we have...

...

Now you mention it, indeed. With NuevaSync, all calendars are merged to one calendar on the N900. :eek:
I also use NuevaSync to sync Google with my iPod Touch, and on the iPod I do see all calendars separately. So one would assume this'd work...

Just tested... Adding an appointment in the N900-calendar syncs to the main calendar in Google.

FYI; From NuevaSync:
Quote:

Possibly, if the phone itself supports multiple calendars. At present the only device we know with multical support is the iPhone.
The service merges calendars for all other devices, including at this point the N900.
We can add a special mode where we can de-merge the calendars for your account. Then you can test and we'll find out if it works.
There are other devices that have native multical support, but still don't do it for Exchange sync (e.g. the Palm Pre). It would be
nice if the N900 isn't like this.


Nozu 2009-12-08 15:46

Re: Sync with Google
 
Quote:

Originally Posted by Beun (Post 416359)
I'm surprised no one has mentioned NuevaSync as a tool to sync the N900 with Google calendar/contacts.
I have been using it to sync several devices with Google for quite some time now. And since last saturday I also use it on the N900. Works like a charm :)
Just thought I'd mention it.

I now tested the NuevaSync. Ends up by N900 saying Exchange Server error and creates duplicates of some of my events. NuevaSync's status in their website says sync went OK.

And because of Exchange Server error the N900 won't let me save the Exchange account.

Not good.

Beun 2009-12-08 15:50

Re: Sync with Google
 
Quote:

Originally Posted by Nozu (Post 416737)
I now tested the NuevaSync. Ends up by N900 saying Exchange Server error and creates duplicates of all of my events. NuevaSync's status in their website says sync went OK.

Not good.

Peculiar. Except for the multiple calendar/one calendar-issue, the syncing of calendar-items and contacts seem to work just fine. That's why I thought I'd mention NuevaSync over here.
Obviously though, there seems to be some work to do :o

petibub 2009-12-08 16:58

Re: Sync with Google
 
Quote:

Originally Posted by zaheerm (Post 416606)
I have a command line app that works for one way sync from gcal to maemo. I am in my spare time getting a basic ui together for people to test it.

Here is a pic of 26 calendars synced from gcal to my device:

http://www.flickr.com/photos/aandza/4164018365/

Oh boy - that's ingenious :-)

I would love to test your tool - I don't care for the GUI because I could just run it from the X-Term with some parameters...
However, I checked the repository - there is a .cpp file, so I assume that I need the compiler and libraries to create the binary. Do you think you could provide a compiled binary? This would save much time, for me, being a simple user.

thanks a lot

jsuggs 2009-12-08 16:58

Re: Sync with Google
 
Are you guys using the premium or the free accounts?

mosi0815 2009-12-08 17:06

Re: Sync with Google
 
Nuevasync works better than Google Sync but not perfect. If i merge contacts they don't get synced back to Google. Sometimes it decides to resync my whole contacts. Then i have to merge them all again. No good Solution. Antother Problem with contacts is that if i assign a image to a contact on the phone it also doesn't get synced back to Google.
I am not really happy with the N900 because of this sync issues. On my Symbian devices i have used GooSync. It was a good and reliable sollution. MfE tells me half the time, that it can't reach the server. Push Mail isn't working. Sometimes i have to reboot the N900 to get it syncing.
The most annoying thing is the mail sending issue if you use MfE and Nokia Messaging. Outgoing mails are always moved into the outbox of the MfE Account. I have not enabled mail sync on MfE so they never get sent. This is a known bug and i hope they will fix it. Until MfE istn't working perfect i will disable it. It's a bit annoying to manually maintain the devices calendar and contacts but it's the only workaraound available.

petibub 2009-12-08 17:57

Re: Sync with Google
 
Quote:

Originally Posted by jsuggs (Post 416867)
Are you guys using the premium or the free accounts?

The free one.

bganga 2009-12-08 18:00

Re: Sync with Google
 
Quote:

Originally Posted by Nozu (Post 416737)
I now tested the NuevaSync. Ends up by N900 saying Exchange Server error and creates duplicates of some of my events. NuevaSync's status in their website says sync went OK.

And because of Exchange Server error the N900 won't let me save the Exchange account.

Not good.

I get the same after deleting the N900 calendar to start fresh.

Beun 2009-12-09 16:52

Re: Sync with Google
 
FYI... From the NuevaSync-blog:
Quote:

I'm very happy to announce that NuevaSync now works with all the devices that have an Exchange sync capability. Compatible phones include the very new Nokia N900...
(http://nuevasync.blogspot.com/2009/1...l-devices.html)

Contacts indeed now also sync from my N900 to Google :D
The multiple calendar merging to one on the N900 does not seem to be solved yet though...

DaSilva 2009-12-10 10:31

Re: Sync with Google
 
I think the solution from zaheerm sounds very promising but it is still a lot to do. I wish I would already have my N900 here to test it...

Nozu 2009-12-11 14:07

Re: Sync with Google
 
Quote:

Originally Posted by Beun (Post 419178)
FYI... From the NuevaSync-blog:

(http://nuevasync.blogspot.com/2009/1...l-devices.html)

Contacts indeed now also sync from my N900 to Google :D
The multiple calendar merging to one on the N900 does not seem to be solved yet though...

I tried nuevasync again.

Last time I created the MfE account throught the email application, I wasn't able to uncheck the sync email part, it was grayed out(disabled). I just want to sync the calendar, nothing more. As a result I got server error, therefore was't able to save the MfE ac**** and got my calendars filled with duplicates.

This time I created the MfE account from settings / connections / MfE. The settings were identical except through there I was able to uncheck the sync email option. No server errors this time and I was able to finish the MfE account creation. But again I have three months of worth duplicate events in both N900 and Google calendar. So still no go... :(

magalinasser 2009-12-11 14:30

Re: Sync with Google
 
I am having problems with MfE to synchronize with Google.(contacts and calendar).
Sometimes it just works but most of the times it doesn't.
I noticed that after a reset it always works for a while.

neowolf 2009-12-11 14:31

Re: Sync with Google
 
I had random duplicates when I started using it. I cleaned it up and it works fine. Sadly you may have to put up with it if you wanna go ahead and get to using it.

Nozu 2009-12-11 17:40

Re: Sync with Google
 
Quote:

Originally Posted by neowolf (Post 422824)
I had random duplicates when I started using it. I cleaned it up and it works fine. Sadly you may have to put up with it if you wanna go ahead and get to using it.

Thanks, I decided to resync after cleaning up like you suggested. This time it didn't create duplicates and did sync most of the events from the past and the next 2 weeks but left most of the events after that unsynchronized although I have tried 3 and 6 months in settings... weird. But now it already works better than nothing! :o

dboreham 2009-12-11 22:05

Re: Sync with Google
 
Quote:

Originally Posted by Nozu (Post 423220)
Thanks, I decided to resync after cleaning up like you suggested. This time it didn't create duplicates and did sync most of the events from the past and the next 2 weeks but left most of the events after that unsynchronized although I have tried 3 and 6 months in settings... weird. But now it already works better than nothing! :o

Hi, I can explain this: free accounts are limited to syncing back 2 weeks in time.

dboreham 2009-12-11 22:12

Re: Sync with Google
 
Quote:

Originally Posted by Beun (Post 419178)
The multiple calendar merging to one on the N900 does not seem to be solved yet though...

Some background on this :

Our service is designed to service two kinds of device : those that have a multiple calendar capability (e.g the iPhone), and those that don't (e.g. Windows Mobile). The service identifies the device type and behaves accordingly. For devices that only support one calendar, it merges the Google calendars selected for sync onto the device's single calendar.

Now, at present it is our belief that the N900 does not support multiple calendars. "Yes it does!" I hear you say. Well, yes the calendar application on the phone does, but in the context of our service that isn't the important thing. What matters is whether the sync client on the phone will support multiple calendars. There are phones on the market that have a multiple calendar capability, but do not support that feature when syncing with Exchange (e.g. the Palm Pre).

So...since we don't have an N900 here yet to test, I can't be sure that it doesn't do multiple calendars. I'd be happy to work with someone out there who has a) a device and b) some spare time, to test it to be sure. Some Google searching suggests that the developers of the MfE client for Maemo may not have understood how to implement multiple calendar support, and hence the current version of the client doesn't support it (but a future one might).

Hopefully this all makes sense.

tuxfoo 2009-12-14 04:42

Re: Sync with Google
 
Quote:

Originally Posted by zaheerm (Post 414103)
I have google multicalendar support one way sync working. It is command line only for the moment but supports multiple google accounts also.

Once I get some kind of basic UI on it, I will push to extras-devel. Anyone curious can look at the code at http://github.com/zaheerm/mgcalsync


Glad to see this! I skimmed the code, but haven't had a chance to try it out yet. Are you interested in turning this in to a two-way sync at some point?

Glancing over the code (grabbed from git tonight), I think moving towards two-way should be relatively easy. In add_event(), there is a block of if/else's which generate effectively three cases:

1) Event was previously mapped but no longer exists in mcal. In this case, delete the entry from the gcal.

2) Event is not mapped. This case would stay the same, add the event to mcal (would need to update the event hash described below).

3) Event is mapped. In this case, the code currently checks to see if the gcal and mcal events differ, if so they update mcal. Instead, we could store with the event mapping a hash of the event as last synchronized with gcal. We compare both the gcal and mcal hashes against the event mapping hash. If all three hashes match, no update is necessary. if the gcal hash matches the event mapping hash, but mcal hash differs, then the event was changed locally and needs to be updated on gcal (and the event mapping hash updated). If the mcal hash matches, but gcal hash differs, then the event was changed on gcal and needs to be updated in mcal (and the event mapping hash updated). If neither the gcal or mcal hashes match the event mapping hash, then the event was presumably modified on both ends and we enter conflict resolution.

For conflict resolution, I think there are three reasonable options (user configured preference):

1) always trust server (same as gcal hash differs)
2) always trust local (same as mcal hash differs)
3) interactive

In the interactive case, neither gcal or mcal is updated, but the event and relevant details are added to a conflict table in info.db. The GUI triggers a Maemo notification that conflicts need to be resolved. When the user activates the notification, they are provided a list of conflicts, allowing them in each case to select how to resolve the conflict. The interactive mode could probably be left as a later feature, as I'm guessing most users would be satisfied with #1 or #2.

The other thing I see missing (aside from GUI) removing events from mcal when they are deleted from gcal. For that we'd need to mark off the mcal events as we see them in the gcal feed. After everything else finishes, remove the mcal events that don't get flagged.

I'm going to try and find some time to build your code and start playing with it to see how well this will work.

dreixel 2009-12-16 09:56

Re: Sync with Google
 
Quote:

Originally Posted by zaheerm (Post 414103)
I have google multicalendar support one way sync working. It is command line only for the moment but supports multiple google accounts also.

Once I get some kind of basic UI on it, I will push to extras-devel. Anyone curious can look at the code at http://github.com/zaheerm/mgcalsync

Thanks a lot for this. I would want to test this myself but I can't do much with the .cpp file (lacking a c compiler on the n900). So I'm also asking for a precompiled binary (as someone else already did). Or, even better, get the app on the repositories, with UI or not...

tuxfoo 2009-12-24 02:01

Re: Sync with Google
 
Quote:

Originally Posted by zaheerm (Post 416606)
I have a command line app that works for one way sync from gcal to maemo. I am in my spare time getting a basic ui together for people to test it.

Here is a pic of 26 calendars synced from gcal to my device:

http://www.flickr.com/photos/aandza/4164018365/


Have you tested this in the SDK/emulator? I'm having trouble getting libgdata working in the SDK because of SSL issues (still trying to sort those out).I might go ahead and build for my device and test it there.

fixfox 2010-01-02 10:34

Re: Sync with Google
 
Quote:

Originally Posted by magalinasser (Post 422818)
I am having problems with MfE to synchronize with Google.(contacts and calendar).
Sometimes it just works but most of the times it doesn't.
I noticed that after a reset it always works for a while.

Have the very same problem as you.... works for a while after restart. then stops working for some reason (exchange server error ) and will only begin working again after a restart.


All times are GMT. The time now is 23:17.

vBulletin® Version 3.8.8