maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar (https://talk.maemo.org/showthread.php?t=40408)

lorelei 2010-06-05 23:05

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by abergon (Post 701373)
Hello,

is it possible to use Erminig to synchronise a Google Calendar with a premier edition account?

I have used Erminig succesfully so far with an email ending with @gmail.com , I would like now to edit my email address to reflect my domain name, I do not know how to do that.

Albert

I would say that it will work also with premier accounts. In Erminig you can go to the settings panel, and add another google account. Then add a new profile using the premier account. If everything goes well you should see the list of your calendars.

Unfortunately I cannot test it myself, since I don't have a premier account...

abergon 2010-06-06 13:26

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by lorelei (Post 701715)
I would say that it will work also with premier accounts. In Erminig you can go to the settings panel, and add another google account. Then add a new profile using the premier account.

When I add the google account, Erminig assumes the domain name will be gmail.com, unless I am mistaken. When I insert the user name, I get an error message afterwards "Invalid username or password". And then I'm stuck.

Pradorey 2010-06-06 19:45

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
I have the recent problem, that it is not working proberly since two days. I didn't change anything, but always ocurs the following message:

Traceback (most recent call last):
File "/usr/bin/erminig", line 153, sync_all_profiles(widget=<gtk.ToolButton object at 0x41d5b800 (GtkToolButton at 0x4bb1d8)>, data=<hildon.StackableWindow object at 0x41d62698 (HildonStackableWindow at 0x450060)>)
id = i[0]
do_profile_sync(id, data)
variables: {'data': ('local', <hildon.StackableWindow object at 0x41d62698 (HildonStackableWindow at 0x450060)>), 'id': ('local', 4), 'do_profile_sync': ('global', <function do_profile_sync at 0x41cff6f0>)}
File "/usr/bin/erminig", line 125, do_profile_sync(id=4, data=<hildon.StackableWindow object at 0x41d62698 (HildonStackableWindow at 0x450060)>)
profile['remoteSource'], \
profile['lastUpdate'], progress)
variables: {'profile': ('local', {'lastUpdate': 1275578896, 'direction': 0, 'lastLocalUpdate': 1275578899, 'remoteSourceTitle': u'Klinik', 'remoteAccountId': 1, 'enabled': 1, 'localSource': u'12', 'remoteSource': u'capvpqu9tn1o42gnklf4nm3250@group.calendar.google .com', 'localSourceTitle': u'Klinik', 'id': 4}), 'progress': ('local', <gtk.ProgressBar object at 0x41d5acd8 (GtkProgressBar at 0x4cd8d0)>)}
File "/usr/share/erminig/erminig_core.py", line 495, syncFromGoogle(pid=4, localSource=u'12', remoteSource=u'capvpqu9tn1o42gnklf4nm3250@group.ca lendar.google.com', lastSync=1275578896, progress=<gtk.ProgressBar object at 0x41d5acd8 (GtkProgressBar at 0x4cd8d0)>)
getNewEventsFromGoogle(pid, int(localSource), remoteSource, lastSync, \
progress)
variables: {'progress': ('local', <gtk.ProgressBar object at 0x41d5acd8 (GtkProgressBar at 0x4cd8d0)>)}
File "/usr/share/erminig/erminig_core.py", line 256, getNewEventsFromGoogle(pid=4, localSource=12, remoteSource=u'capvpqu9tn1o42gnklf4nm3250@group.ca lendar.google.com', lastSync=1275578896, progress=<gtk.ProgressBar object at 0x41d5acd8 (GtkProgressBar at 0x4cd8d0)>)
else:
insertGoogleEventLocally(event, int(localSource), pid)
variables: {'int': ('builtin', <type 'int'>), 'localSource': ('local', 12), 'pid': ('local', 4), 'event': ('local', <Event.Event instance at 0x41fad300>), 'insertGoogleEventLocally': ('global', <function insertGoogleEventLocally at 0x41d39e70>)}
File "/usr/share/erminig/erminig_core.py", line 91, insertGoogleEventLocally(event=<Event.Event instance at 0x41fad300>, cid=12, pid=4)
if localID:
updateGoogleEventLocally(event, cid, localID)
else:
variables: {'updateGoogleEventLocally': ('global', <function updateGoogleEventLocally at 0x41d39eb0>), 'localID': ('local', u'13562'), 'event': ('local', <Event.Event instance at 0x41fad300>), 'cid': ('local', 12)}
File "/usr/share/erminig/erminig_core.py", line 100, updateGoogleEventLocally(event=<Event.Event instance at 0x41fad300>, cid=12, localID=u'13562')
# XXX Check for failed updates!
cwrapper.updateLocalEvent(cid, event, localID)
variables: {'cwrapper.updateLocalEvent': ('global', <function updateLocalEvent at 0x413a8130>), 'localID': ('local', u'13562'), 'event': ('local', <Event.Event instance at 0x41fad300>), 'cid': ('local', 12)}
File "/usr/share/erminig/cwrapper.py", line 97, updateLocalEvent(cid=12, evt=<Event.Event instance at 0x41fad300>, lid=u'13562')
evt.get_start(), evt.get_end(), evt.get_rrule(), \
evt.get_rtype(), evt.get_until())
variables: {'evt.get_until': ('local', <bound method Event.get_until of <Event.Event instance at 0x41fad300>>), 'evt.get_rtype': ('local', <bound method Event.get_rtype of <Event.Event instance at 0x41fad300>>)}
File "/usr/share/erminig/Event.py", line 98, get_until(self=<Event.Event instance at 0x41fad300>)
# ??
return int(iso8601.parse(iso_date)) + 1
variables: {'int': ('builtin', <type 'int'>), 'iso8601.parse': ('global', <function parse at 0x41d398b0>), 'iso_date': ('local', '--::')}
File "/usr/share/erminig/iso8601.py", line 22, parse(s='--::')
if m is None or m.group() != s:
raise ValueError, "unknown or illegal ISO-8601 date format: " + `s`
gmt = __extract_date(m) + __extract_time(m) + (0, 0, 0)
variables: {'s': ('local', '--::'), 'ValueError': ('builtin', <type 'exceptions.ValueError'>)}
ValueError: unknown or illegal ISO-8601 date format: '--::'

Could somebody give me help, please?

Many thanks

lorelei 2010-06-06 23:24

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by Pradorey (Post 702626)
I have the recent problem, that it is not working proberly since two days. I didn't change anything, but always ocurs the following message:

ValueError: unknown or illegal ISO-8601 date format: '--::'

Could somebody give me help, please?

known issue with recurring events...a fix is in the works (I was kinda busy the last 2 weeks, so no progress, but now it looks like that I have a few hours to spare to work on this.)

lorelei 2010-06-06 23:30

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by abergon (Post 702253)
When I add the google account, Erminig assumes the domain name will be gmail.com, unless I am mistaken. When I insert the user name, I get an error message afterwards "Invalid username or password". And then I'm stuck.

Hmmm, ok.

Honestly I don't exactly know how those premier account work...

In fact Erminig does not make any assumption concerning the location of the calendar server: it's all up to the google-data library. All what Erminig does is to pass the username/password couple to the Google Library, which then takes care to contact the Google servers. At the moment I have no idea how those premier accounts are managed Google-side...I will investigate this issue...

jahaugum 2010-06-07 07:52

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by lorelei (Post 702812)
Hmmm, ok.

Honestly I don't exactly know how those premier account work...

In fact Erminig does not make any assumption concerning the location of the calendar server: it's all up to the google-data library. All what Erminig does is to pass the username/password couple to the Google Library, which then takes care to contact the Google servers. At the moment I have no idea how those premier accounts are managed Google-side...I will investigate this issue...

I've been using erminig with both my standard gmail and premiere google apps account for a while. Works very good for me. Just use the full email address as username.

abergon 2010-06-07 10:17

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Thanks, that fixed it.


Albert

slender 2010-06-07 12:41

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Hi I installed erminig (0.2.9) and looks like my icons are broken. Any hints what to do.

Also could you put that picture with buttons explanations to first post. After you have managed to hunt all major bugs it would be probably good to add feature that show user help image about buttons after install.

Great work! Now iīm going to test how it syncs :)

.edit
canīt sync :| Letīs reinstall + rm .erminig.db from home.

..edit
facepalm. Ok. This is known bug
https://bugs.maemo.org/show_bug.cgi?id=10351

..edit
Have to still say that app icon and working icon look quite blurred.

slender 2010-06-07 16:58

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
1 Attachment(s)
I'm getting following error when syncing.

lorelei 2010-06-07 19:20

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
@slender: yes, the stack trace you posted is also a known bug, introduced with the recurring events support :(

I'm also taking note about the lacking documentation. Will definitely improve that!

For the blurry icons: never realized that it was *that* blurry. I'm probably packaging the wrong icon. Thank you for pointing that!

oneFinn 2010-06-08 04:39

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Erminig produces double events. I'm using Thunderbird Lightning on PC with Zindus to sync with gmail calendar. I added an event on gmail and now erminig shows event two times in N900. Any idea why?

tomas.kukol 2010-06-08 09:48

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by slender (Post 703420)
Hi I installed erminig (0.2.9) and looks like my icons are broken. Any hints what to do.

I can confirm that the icons are missing. There are missing these icons: the first (add new account), fourth (synchronize both) and fifth (remove account). But these icons are missing after the upgrade to new 1.2 firmware, not after an upgrade to 0.2.9. I have quickly looked at the code in the phone (sorry, but I don't know Python) and it seems to me that there are used some shared icons there even if the icons are in /usr/share/erminig/pixmaps. For instance for the third icon the full path to .png file is specified and the icon gets rendered.

lorelei 2010-06-08 10:42

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by tomas.kukol (Post 705088)
I can confirm that the icons are missing. There are missing these icons: the first (add new account), fourth (synchronize both) and fifth (remove account). But these icons are missing after the upgrade to new 1.2 firmware, not after an upgrade to 0.2.9. I have quickly looked at the code in the phone (sorry, but I don't know Python) and it seems to me that there are used some shared icons there even if the icons are in /usr/share/erminig/pixmaps. For instance for the third icon the full path to .png file is specified and the icon gets rendered.

There's a bug report open for the missing icons, and the only icon shown in PR1.2 is an icon which is not part of standard "stock" icons of GTK. Apparently in PR1.2 either the names of the stock icons changed, or they are simply not shipped anymore.

To correct that I will probably always include all icons within the Erminig package.

barzam 2010-06-09 14:35

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Thanks for making this program, having multiple calendars synced from Google is a great thing. I'm looking forward to the fix with recurring events as I have quite a few of those.

Keep up the good job!

DaSilva 2010-06-09 16:14

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Do you think that you can provide an update for the sports calendar sync in the next days (World Cup will start on coming Friday)?
Would be nice

lorelei 2010-06-09 20:52

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by DaSilva (Post 707434)
Do you think that you can provide an update for the sports calendar sync in the next days (World Cup will start on coming Friday)?
Would be nice

Unfortunately it looks like it's not possible to sync sports calendar. Here's what I found on Google's site (http://www.google.com/support/calend...answer=37098):

Quote:

Keep in mind that it's not possible to sync sports calendars with other calendar applications at this time.
:(

I'm really sorry for that...

jehan 2010-06-10 07:58

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Hi! Today I noticed that my calendars has not been synchronized in the morning. I opened erminig and pressed the button to sync all calendars but nothing happens.

Next I opened a console and entered the command 'erminig --sync-all' and erminig came back with 'CaptchaRequired('Captcha Required',)' for every calendar.

What does this mean and what can I do to make erminig sync again?

lorelei 2010-06-10 09:56

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by jehan (Post 708330)
Hi! Today I noticed that my calendars has not been synchronized in the morning. I opened erminig and pressed the button to sync all calendars but nothing happens.

Next I opened a console and entered the command 'erminig --sync-all' and erminig came back with 'CaptchaRequired('Captcha Required',)' for every calendar.

What does this mean and what can I do to make erminig sync again?

Did you change your Google password recently? Or did you mistype it several times in the web interface?

Just to be sure, I would try to log-in from the web interface once, and then retry with Erminig.

jehan 2010-06-11 11:19

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by lorelei (Post 708493)
Did you change your Google password recently? Or did you mistype it several times in the web interface?

Just to be sure, I would try to log-in from the web interface once, and then retry with Erminig.

I havn't changed anything and I even didn't used google contacts via the web interface. Anyway ... today syncing with erminig works again.

Maybe a google problem.

gasper_k 2010-06-14 13:37

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
lorelei, is it possible to push a little fix for the recurring events error to the repository? At the moment, Erminig quits when it processes such event, but that means that any other from the same calendar don't get synced, too. I'm able to live without some events, but this renders the whole calendar useless. So, my idea is that when Erminig fails with this error, it could just skip to the next event in the calendar, instead of stopping completely. I'm fairly certain this shouldn't be too hard, and it's a decent solution until you come up with a complete fix. :)

ceevee 2010-06-16 22:20

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by oneFinn (Post 704805)
Erminig produces double events.

I get the same thing when I add a new event on the N900 calendar. When I check Google Calendar, the event shows up duplicated.

It is not duplicated on the N900.


Edit: I noticed newly added events to the N900 show up as duplicated events on Google Calendar only when it does daily synchronization.

Doing manual sync does not dupe new events on Google Calendar.

lorelei 2010-06-19 14:05

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by gasper_k (Post 714460)
lorelei, is it possible to push a little fix for the recurring events error to the repository? At the moment, Erminig quits when it processes such event, but that means that any other from the same calendar don't get synced, too. I'm able to live without some events, but this renders the whole calendar useless. So, my idea is that when Erminig fails with this error, it could just skip to the next event in the calendar, instead of stopping completely. I'm fairly certain this shouldn't be too hard, and it's a decent solution until you come up with a complete fix. :)

I will release a new version Sunday evening, that will fix this issue (hopefully), plus a handful of other bugs...

lorelei 2010-06-20 21:48

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Hi all,

here is version 0.2.11 of Erminig, available in extras-devel. There are no big changes compared to version 0.2.9 (and 0.2.10), but it should fix an annoying bug with recurring events that could make Erminig to crash. Furthermore the missing icons problem with PR1.2 is now fixed.

I still expect issues with some odd recurring events, potentially those that are based on different timezones (I'm not sure yet how to handle those cases). So if you have recurring events, please check that they are not offsetted of a few hours.

The changelog, as included in the package:

Code:

* FIX: Fixed broken icons since upgrade to PR1.2
* FIX: Log Window can be scrolled horizontally
* FIX: Recurring events: wrong parsing of some RRULES

I'm well aware that I did not fix all bugs reported so far, but it's getting difficult to track the bugs both here and by private mail, so I would be very grateful if you could submit all your bug reports to the bugzilla (http://bugs.maemo.org). This will greatly help me!

thanks in advance!

kHan 2010-06-21 19:53

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Hello, since 2 or 3 weeks I have a syncronisation problem !
My secondary calendars will sync, but not my main calendar.
Despite the latest update ... :(
I copy the error report.
sorry for my English!


Traceback (most recent call last):
File "/usr/bin/erminig", line 153, sync_all_profiles(widget=<gtk.ToolButton object at 0x40bef530 (GtkToolButton at 0x4c69f0)>, data=<hildon.StackableWindow object at 0x40becaf8 (HildonStackableWindow at 0x456060)>)
id = i[0]
do_profile_sync(id, data)
variables: {'data': ('local', <hildon.StackableWindow object at 0x40becaf8 (HildonStackableWindow at 0x456060)>), 'id': ('local', 10), 'do_profile_sync': ('global', <function do_profile_sync at 0x40c18230>)}
File "/usr/bin/erminig", line 125, do_profile_sync(id=10, data=<hildon.StackableWindow object at 0x40becaf8 (HildonStackableWindow at 0x456060)>)
profile['remoteSource'], \
profile['lastUpdate'], progress)
variables: {'profile': ('local', {'lastUpdate': 0, 'direction': 0, 'lastLocalUpdate': 0, 'remoteSourceTitle': u'MH', 'remoteAccountId': 1, 'enabled': 1, 'localSource': u'1', 'remoteSource': u'mickael.hinault@gmail.com', 'localSourceTitle': u'N900', 'id': 10}), 'progress': ('local', <gtk.ProgressBar object at 0x40bf2da0 (GtkProgressBar at 0x4dc2d0)>)}
File "/usr/share/erminig/erminig_core.py", line 504, syncFromGoogle(pid=10, localSource=u'1', remoteSource=u'mickael.hinault@gmail.com', lastSync=0, progress=<gtk.ProgressBar object at 0x40bf2da0 (GtkProgressBar at 0x4dc2d0)>)
getNewEventsFromGoogle(pid, int(localSource), remoteSource, lastSync, \
progress)
variables: {'progress': ('local', <gtk.ProgressBar object at 0x40bf2da0 (GtkProgressBar at 0x4dc2d0)>)}
File "/usr/share/erminig/erminig_core.py", line 238, getNewEventsFromGoogle(pid=10, localSource=1, remoteSource=u'mickael.hinault@gmail.com', lastSync=0, progress=<gtk.ProgressBar object at 0x40bf2da0 (GtkProgressBar at 0x4dc2d0)>)
rstring = recurrence['rrule']
start_time = iso8601ToTimestamp(recurrence['dtstart'])
end_time = iso8601ToTimestamp(recurrence['dtend'])
variables: {'recurrence': ('local', {'dtend': '2007-09-01T10:30:00', 'dtstart': '2007-09-01T09:30:00', 'rrule': 'FREQ=MONTHLY;BYMONTHDAY=0;WKST=MO;UNTIL=21001231T 000000;INTERVAL=1'}), 'start_time': ('local', None), 'iso8601ToTimestamp': ('global', <function iso8601ToTimestamp at 0x40b50ab0>)}
File "/usr/share/erminig/erminig_core.py", line 120, iso8601ToTimestamp(date='2007-09-01T09:30:00')
def iso8601ToTimestamp(date):
return int(iso8601.parse(date))
variables: {'int': ('builtin', <type 'int'>), 'date': ('local', '2007-09-01T09:30:00'), 'iso8601.parse': ('global', <function parse at 0x40b503b0>)}
File "/usr/share/erminig/iso8601.py", line 22, parse(s='2007-09-01T09:30:00')
if m is None or m.group() != s:
raise ValueError, "unknown or illegal ISO-8601 date format: " + `s`
gmt = __extract_date(m) + __extract_time(m) + (0, 0, 0)
variables: {'s': ('local', '2007-09-01T09:30:00'), 'ValueError': ('builtin', <type 'exceptions.ValueError'>)}
ValueError: unknown or illegal ISO-8601 date format: '2007-09-01T09:30:00'

lorelei 2010-06-21 21:10

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
@kHan: thanks for the report. I will have a look as soon as possible...looks like yet another mis-handled date...

slender 2010-06-21 21:31

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
lorelei,
Icons seem to work. But little request :) They look almost all blurred. I looked them in deb file and they are all smaller than on UI. Also main icon is 48x48 when it should be 64x64. So they all get resized and it doesn't do justice to them. When you have time i would suggest to do some photoshopping on them. If you choose to resize then remember to do little unshapren mask on them.

Looking great otherwise :)

Vishwacorp 2010-06-22 02:42

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
I use google calendar a lot and this app brought newfound usefulness to my n900. Keep up the good work! (Just waiting for the repeated events synchronising and this will be perfect) :)

GreatGonzo 2010-06-22 03:00

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
It works for me now. Thanks again "lorelei".

lorelei 2010-06-22 07:03

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by slender (Post 724168)
lorelei,
Icons seem to work. But little request :) They look almost all blurred. I looked them in deb file and they are all smaller than on UI. Also main icon is 48x48 when it should be 64x64. So they all get resized and it doesn't do justice to them. When you have time i would suggest to do some photoshopping on them. If you choose to resize then remember to do little unshapren mask on them.

Good point, thank you! Next release will integrate correctly-sized icons!

lorelei 2010-06-22 07:04

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by Vishwacorp (Post 724404)
I use google calendar a lot and this app brought newfound usefulness to my n900. Keep up the good work! (Just waiting for the repeated events synchronising and this will be perfect) :)

Hmmm, there's already the support for repeated events (or recurring events) synchronization, unless we are speaking of two different things?

thanks

ChoMar 2010-06-22 07:29

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Just a big THANKS from me.
Now I can tell my Girlfriend about all my events and she can use Google Calendar to remind me of them.

Vishwacorp 2010-06-22 19:06

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by lorelei (Post 724556)
Hmmm, there's already the support for repeated events (or recurring events) synchronization, unless we are speaking of two different things?

thanks

Hmmm. Maybe I'm running an older version (since I deactivated the devel repository after installing erminig). I am running version 0.2.11 and it only synchronizes the first occurrence of a repeat event and then ignores the rest.

More specifically, I have an event on Google calendar that repeats every two weeks until December starting mid June. Erminig only syncs the first occurrence of the event in June and ignores the repeats every two weeks.

So, is there something I am doing wrong?

Thanks.

lorelei 2010-06-22 19:13

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by Vishwacorp (Post 725287)
Hmmm. Maybe I'm running an older version (since I deactivated the devel repository after installing erminig). I am running version 0.2.11 and it only synchronizes the first occurrence of a repeat event and then ignores the rest.

More specifically, I have an event on Google calendar that repeats every two weeks until December starting mid June. Erminig only syncs the first occurrence of the event in June and ignores the repeats every two weeks.

So, is there something I am doing wrong?

Thanks.

Hmmm, that case should be covered in version 0.2.11. I will investigate what's going on. Could you have a look at the log window to see if Erminig complains about that event?

Vishwacorp 2010-06-22 20:36

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
2 Attachment(s)
Quote:

Originally Posted by lorelei (Post 725301)
Hmmm, that case should be covered in version 0.2.11. I will investigate what's going on. Could you have a look at the log window to see if Erminig complains about that event?

Hey. First, I uninstalled and then reinstalled the application, synchronization profile, and deleted all events from my N900 calendar before resynchronization.

The problem still persisted and I checked the log, which outputs the following.

"RequestError({'status': 400, 'body': 'Invalid recurrence data', 'reason': 'Bad Request'},)"
"RequestError({'status': 400, 'body': 'Invalid recurrence data', 'reason': 'Bad Request'},)"
"RequestError({'status': 400, 'body': 'Invalid recurrence data', 'reason': 'Bad Request'},)"
"RequestError({'status': 400, 'body': 'Invalid recurrence data', 'reason': 'Bad Request'},)"

I was curious as to why only that one event was copying so I clicked on it to check the details on my N900. I have attached a screenshot of the event on my N900 and on my Google Calendar below.

And thanks very much for your help!

Pengman 2010-06-29 19:32

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
I had a problem with the syncing in the newest version:

Code:

ValueError: unknown or illegal ISO-8601 date format: '2007-09-13T12:30:00'
So I had a look around in the file, and I changed line 89 of iso8601.py to read

Code:

__tzd_re = "(?P<tzd>[-+](?P<tzdhours>\d\d)(?::?(<tzdminutes>\d\d))|Z)?"
That is, I added a ? at the very end of the expression, making the entire thing optional (since the date in the exception doesn't have timezone info)

This allowed erminig to run an entire sync cycle without throwing an exception and stopping, This might not be the right thing as those fields are now just nones in the match object, but it might be part of a correct fix,

If you would prefer I rapport this elsewhere I shall off course do that.

And finally a thank you for a great application.

lorelei 2010-06-29 21:20

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
@Pengman: thanks for the fix. I will look if I should integrate it as it is, or if I should take another path for that problem. That iso8601.py file has not been written by myself, but it's rather part of a package, that I had to hard-include in Erminig due to dependencies issues, so this is the reason why I'm not too enthusiast in changing it, but would rather prefer doing it directly in Erminig itself.

Pengman 2010-06-29 21:33

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by lorelei (Post 734627)
That iso8601.py file has not been written by myself, ... would rather prefer doing it directly in Erminig itself.

That makes sense. It was just a simple hackjob that worked for me. I'm sure you can find a better solution that fits with the rest of your code.

gasper_k 2010-07-04 15:23

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
I think I found another bug. Can't really say what has happened, I didn't do anything special in the calendar, so apparently some strange event came within the sync period, but I can't find out, which. I've deleted and recreated a few stranger looking, but apparently not the right one, because I keep getting this.

Lorelei, is it possible to implement "skip" in case of such failures? Erminig tells me the error is probably not fatal, but then it forces me to quit, so I can't sync any other event in the calendar. I think it would be better if the bug was reported, then the sync would continue with the next event in the same calendar, thus syncing as many events as possible.

Also, is this the correct bug tracker for Erminig? Is it active, do I use it next time to post bugs?

Regards,
Gasper

Traceback:
Code:

Traceback (most recent call last):
  File "/usr/bin/erminig", line 80, sync_profile(widget=<gtk.ToolButton object at 0x40cee530 (GtkToolButton at 0x4c7168)>, data=<hildon.StackableWindow object at 0x40cecaf8 (HildonStackableWindow at 0x457060)>)
      if selected_id:
        do_profile_sync(selected_id, data)
  variables: {'data': ('local', <hildon.StackableWindow object at 0x40cecaf8 (HildonStackableWindow at 0x457060)>), 'selected_id': ('local', 15), 'do_profile_sync': ('global', <function do_profile_sync at 0x40d19230>)}
  File "/usr/bin/erminig", line 125, do_profile_sync(id=15, data=<hildon.StackableWindow object at 0x40cecaf8 (HildonStackableWindow at 0x457060)>)
            profile['remoteSource'], \
            profile['lastUpdate'], progress)
  variables: {'profile': ('local', {'lastUpdate': 1278047225, 'direction': 0, 'lastLocalUpdate': 1278047226, 'remoteSourceTitle': u'moje!', 'remoteAccountId': 1, 'enabled': 1, 'localSource': u'1', 'remoteSource': u'gasper.kozak@gmail.com', 'localSourceTitle': u'N900', 'id': 15}), 'progress': ('local', <gtk.ProgressBar object at 0x40cf1da0 (GtkProgressBar at 0x4dd0d0)>)}
  File "/usr/share/erminig/erminig_core.py", line 504, syncFromGoogle(pid=15, localSource=u'1', remoteSource=u'gasper.kozak@gmail.com', lastSync=1278047225, progress=<gtk.ProgressBar object at 0x40cf1da0 (GtkProgressBar at 0x4dd0d0)>)
      getNewEventsFromGoogle(pid, int(localSource), remoteSource, lastSync, \
          progress)
  variables: {'progress': ('local', <gtk.ProgressBar object at 0x40cf1da0 (GtkProgressBar at 0x4dd0d0)>)}
  File "/usr/share/erminig/erminig_core.py", line 265, getNewEventsFromGoogle(pid=15, localSource=1, remoteSource=u'gasper.kozak@gmail.com', lastSync=1278047225, progress=<gtk.ProgressBar object at 0x40cf1da0 (GtkProgressBar at 0x4dd0d0)>)
        else:
          insertGoogleEventLocally(event, int(localSource), pid)
  variables: {'int': ('builtin', <type 'int'>), 'localSource': ('local', 1), 'pid': ('local', 15), 'event': ('local', <Event.Event instance at 0x40ec4148>), 'insertGoogleEventLocally': ('global', <function insertGoogleEventLocally at 0x40c3e9b0>)}
  File "/usr/share/erminig/erminig_core.py", line 89, insertGoogleEventLocally(event=<Event.Event instance at 0x40ec4148>, cid=1, pid=15)
      if localID: 
        updateGoogleEventLocally(event, cid, localID)
      else:
  variables: {'updateGoogleEventLocally': ('global', <function updateGoogleEventLocally at 0x40c3e9f0>), 'localID': ('local', u'1998'), 'event': ('local', <Event.Event instance at 0x40ec4148>), 'cid': ('local', 1)}
  File "/usr/share/erminig/erminig_core.py", line 98, updateGoogleEventLocally(event=<Event.Event instance at 0x40ec4148>, cid=1, localID=u'1998')
      # XXX Check for failed updates!
      cwrapper.updateLocalEvent(cid, event, localID)
  variables: {'cwrapper.updateLocalEvent': ('global', <function updateLocalEvent at 0x4089ae70>), 'localID': ('local', u'1998'), 'event': ('local', <Event.Event instance at 0x40ec4148>), 'cid': ('local', 1)}
  File "/usr/share/erminig/cwrapper.py", line 97, updateLocalEvent(cid=1, evt=<Event.Event instance at 0x40ec4148>, lid=u'1998')
          evt.get_start(), evt.get_end(), evt.get_rrule(), \
          evt.get_rtype(), evt.get_until())
  variables: {'evt.get_until': ('local', <bound method Event.get_until of <Event.Event instance at 0x40ec4148>>), 'evt.get_rtype': ('local', <bound method Event.get_rtype of <Event.Event instance at 0x40ec4148>>)}
  File "/usr/share/erminig/Event.py", line 104, get_until(self=<Event.Event instance at 0x40ec4148>)
        # ??
        return int(iso8601.parse(iso_date)) + 1
  variables: {'int': ('builtin', <type 'int'>), 'iso8601.parse': ('global', <function parse at 0x40c3e3b0>), 'iso_date': ('local', '2100-12-31')}
  File "/usr/share/erminig/iso8601.py", line 24, parse(s='2100-12-31')
        gmt = __extract_date(m) + __extract_time(m) + (0, 0, 0)
        return time.mktime(gmt) + __extract_tzd(m) - time.timezone
  variables: {'time.timezone': ('global', -3600), 'time.mktime': ('global', <built-in function mktime>), 'm': ('local', <_sre.SRE_Match object at 0x40e96ad0>), '__extract_tzd': ('global', <function __extract_tzd at 0x40c3e530>), 'gmt': ('local', (2100, 12, 31, 0, 0, 0, 0, 0, 0))}
OverflowError: mktime argument out of range


crism 2010-07-04 21:29

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Since I am considering using erminig-ng to sync my Google calendars I have a question about it.

Is this app using any encryption (e.g. https) to communicate with Google?

Also it would be nice to have a feature in erminig-ng to set a value for how far back I want to sync. Imagine if my N900 gets stolen, I wouldn't want to have a couple of years of history on it but I would want to have a couple of weeks worth of data.

Cheers

mderazon 2010-07-05 08:25

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
great piece of software !

until it will be completely stable, i liked the option to one way sync things


All times are GMT. The time now is 10:12.

vBulletin® Version 3.8.8