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-12-30 12:28

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

Originally Posted by gasper_k (Post 907369)
The thing to watch out when skipping old events is that repetitions for recurring events can be in the present and should be synced. I think that was an issue back then; Erminig didn't sync repeating events if they started too far in the past, even though they were still occurring in the future.

Good point. I can confirm that this was an issue (and would still have been an issue if you did not point it out).

I'll take that into account during the re-implementation of this feature.
This of course will complicate a bit the management of the first sync, but it doesn't seem too hard to manage :)

thanks.

tomchiverton 2011-01-04 17:05

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
I know there's a new version out soon, but wanted to just chime in and say the current one doesn't seem to signal to bring up on-demand internet connections before attempting the scheduled sync, which throws up a bunch of error boxes once a day :-)

Also, with the connection up, and only one of several profiles disabled, I get a number of boxes saying 'Profile is disabled!' when pressing the sync all button. These appear after the progress bar goes all the way to the end.

lorelei 2011-01-05 21:04

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

- the error boxes should not appear anymore with the new version in the works. It will however not bring up an internet connection

- I will try to reproduce the second bug you reported, and fix it accordingly. Thanks for the report!

tomchiverton 2011-01-07 19:23

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
While I'm pleased the annoying popup is gone, what happens now when the sync time is reached is that it silently fails to work (if you have connect-on-demand on, like must ppl probably have).
This is a bad experience - is there just no Python binding for bringing up the connection (and waiting for it) ? Or do you need some assistance in that area ? I cna go digging through the Python docs for you if so :-)

lorelei 2011-01-07 20:21

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

OK, the bug about disabled profiles is confirmed, and I just fixed it.
If you have the time and you are willing to dig out the doc for bringing up a connection from within Python, I'm more than interested, thanks!

I will release the "sync" version of Erminig in a few hours. Please don't expect tons of updates/new features, since this is more to get everybody on the same version to facilitate the debugging.

lorelei 2011-01-07 23:42

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

version 0.2.12 has just been uploaded to extras-devel.

There aren't tons of new features nor bug fixes. This release is more a collection of all patches floating around, plus a few bug fixes of my own. Please note that now the package is properly optified (we may as well prepare ourselves to the transition to extras-testing :))

the Changelog:

* FIX: Do not try to sync disabled relationships
* FIX: More robust parsing of ISO8601 dates (patch by thomasvs)
* FIX: Silent errors in alarmed mode (patch by Jaffa)
* FIX: Remote source not populated (patch by mdengler)
* NEW: Initial framework for alarms sync (patch by geni4u)
* NEW: Added bug-tracker URL
* NEW: Proper optification

I'm well aware that there are still bugs with the synchronization, so please report any bug to the bug-tracker (https://bugs.maemo.org/enter_bug.cgi?product=erminig)!

Alarm sync is not functional as of yet, but the initial framework is there thanks to geni4u.

Now that I'm well back in the loop (at last!), I will be much more reactive with bug reports and releases, so let's get this software in shape and ready for general availability :)

cjp 2011-01-08 08:57

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Yeah! Thank you!

tomchiverton 2011-01-09 00:14

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Apparently, this should work, but I get an unsupported method type error (http://talk.maemo.org/showthread.php...366#post915366).

import dbus
self.bus = dbus.SystemBus();
self.icd2_obj = self.bus.get_object('com.nokia.icd2', '/com/nokia/icd2')
self.icd2_obj.connect_to_signal('state_sig', self.icd2_state_listener, 'com.nokia.icd2', byte_arrays=True)
self.icd2_iface = dbus.Interface(self.icd2_obj, 'com.nokia.icd2')
self.icd2_iface.connect_req(dbus.UInt32(1))#ICD_CO NNECTION_FLAG_UI_EVENT(0x8000)

def icd2_state_listener(self, *args):
print "icd2_state_listener got args:\n";
print args


There are some great guys on http://talk.maemo.org/showthread.php?t=42588, more docs on DBUS are http://dbus.freedesktop.org/doc/dbus.../tutorial.html and the various calls and signals you get back are here http://wiki.maemo.org/Documentation/...#D-Bus_signals should you need 'em. For instance there is a 'show_conn_dlg' you could call if connect_req timesout (it puts up a dialogue).

lorelei 2011-01-10 06:37

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

cool, thank you for the pointers! I will give them a shot and look what I can do with them!

gasper_k 2011-01-10 08:48

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
I think it may be better to set up a listener for the connection. That way Erminig can sync when a connection is established, just like e-mail is checked. A setting would come in handy so that it wouldn't sync too often, for example: sync when a connection is detected, but not more than once per hour.

I prefer my apps not to connect automatically, because of my limited data plan and possible roaming.

xaccrocheur 2011-02-03 10:38

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
On my end, no luck : it's very unresponsive (each button press takes ages to do anything) it crashed during the registration of my google account, and refused to edit said account everafter, and then silently synced... Nothing. I tried syncing a built-in full one, and the create a dummy one w/ only one evend two days ahead, but nope, nothing, silently syncing nothing. In the log, google seem to not like what it sees (bad request) and upon editing google account, the crash trace said something about some var being of the wrong type (seemd to expect a GTK tree object)

Gosh I would have like this app to work, you have no idea.

I hope my feedback is helpful, good luck !

xaccrocheur 2011-02-03 11:45

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
OTOH, the built-in ill-named "email for exchange" client is not doing much better, I tried again and it errors at every sync, including first one. :(

what is that "exchange" server anyway ?

Can't we just setup our own ? A Drupal module, that would display a list of contacts, a calendar and a tasklist online, and some kind of sync system, I don't know, using email ? anything that works.

petur 2011-02-03 11:52

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Exchange server is a product sold by Microsoft. You can setup your own if you have the money for it ;)

For me, the build-in sync works fine, except for the birthday bug.

Every few months it fails to sync, but either a full resync (manual) or empty calendar + full sync does the trick every time

codeMonkey 2011-02-24 14:44

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Hi Lorelei - I'm getting the "Bug Detected" error message whilst it's trying to sync one of my calendars. How can I figure out which event is causing it?

The stack trace takes me down as far as:
Code:

_AddMembersToElementTree with AttributeError: 'int' object has no attribute 'decode'

jdr93 2011-02-24 15:38

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
this morning i have a problem with the local calendar properly syncing to google's but the google calendar not being synced to the n900.
and ideas? erminig has worked before with no issues, but this is the first sync i've attempted since dec 31.

john

jgbreezer 2011-02-25 12:32

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

Originally Posted by jdr93 (Post 954632)
this morning i have a problem with the local calendar properly syncing to google's but the google calendar not being synced to the n900.
and ideas? erminig has worked before with no issues, but this is the first sync i've attempted since dec 31.

john

My last 2 syncs, both manual and automatic unattended, also had this problem. I did change the calendar one setup was syncing to and I don't know which sync failed as I have about 4 set up, only one of which is both-ways - rest are all from google to my phone only.

Saved the traces though, will edit this post from phone and attach. (edit:finally done it!)

jdr93 2011-02-25 23:32

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
erminig still does not sync from the google calendar to the n900, but it does a very good job of syncing from the n900 to the google calendar. i wonder if it has anything to do with the latest update? or perhaps a change at google?

john

esiravegna 2011-02-26 16:15

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
I can confirm the issue as well.

petibub 2011-02-27 17:15

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
I also have a sync problem here - some of the google events appear at a wrong day on N900. It started two weeks ago - could the last update have introduced a bug?

jgbreezer 2011-03-07 14:17

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
I just noticed also, that I can't seem to stop it synchronising daily either. I enabled it quite a while ago when I first installed it.

With the now-regular failure to synchronise (and then reporting the error and half-killing my phone in the process until it becomes responsive enough to close down the error-reporting dialog), I decided to stop it automatically sync-ing later at night (usually when I'm in bed, which also causes a problem with the alarm not properly working in the morning when erminig-ng dies).

But even though its unticked, it still runs at the scheduled time and kills my phone! Please fix this inability to remove itself from the scheduler!

I have Alarmed installed, btw, in case that could cause a conflict; but nothing else I can think of that is scheduled to run (except normal system alarms and gpodder, which isn't running to synchronise itself automatically since my last reflash of PR1.3 but has been set so in the past).

nibbe 2011-03-08 12:56

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
How can I get rid of error messages after alarmed have run command "/usr/bin/erminig -a 2>/dev/null 1>&1"? I still get it everytime, even if it should have been fixed in the version that I am currently running, naturally the latest.

Should I remove erminig and then remove all configs and .erminig*-files in order to be sure that I am running the latest version? Actually the fix seems to be on /usr/bin/erminig, but still?

Apart the error message, it seems to doing the sync, so I am happy with the rest.

BR,
nibbe

mdengler 2011-03-09 03:38

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

Originally Posted by nibbe (Post 963142)
How can I get rid of error messages after alarmed have run command "/usr/bin/erminig -a 2>/dev/null 1>&1"?

"1>&1" makes no sense; you can drop it.

Are you getting error dialog boxes popping up? See my post way back in this thread about the -d option and patching erminig to make it work fully.

nibbe 2011-03-09 09:29

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
I assume u mean this:

"I had the same problem. There are less than a handful of places in the code where it calls some gtk exception reporting class - just add an "if not <-d set>" test to them."

Can u give me an example how line should look after adding "if not <-d set>" to the code?

BR,
nibbe

jgbreezer 2011-03-09 16:20

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

Originally Posted by mdengler (Post 963710)
"1>&1" makes no sense; you can drop it.

Are you getting error dialog boxes popping up? See my post way back in this thread about the -d option and patching erminig to make it work fully.

I'm wondering if instead of 2>/dev/null 1>&1, it was a typo and originally meant "2>/dev/null 1>&2". Although if so, ">/dev/null 1>&2" is slightly shorter. That cuts out all output to the stdout and stderr streams that you would see in the terminal.

mdengler 2011-03-10 03:24

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

Originally Posted by nibbe (Post 963867)
I assume u mean this:

"I had the same problem. There are less than a handful of places in the code where it calls some gtk exception reporting class - just add an "if not <-d set>" test to them."

Can u give me an example how line should look after adding "if not <-d set>" to the code?

BR,
nibbe


I can't find any better source code repo than this:

https://thomas.apestaart.org/thomas/...?rev=1705#L103

...and I meant to change the code to be like this:

http://pastie.org/1654142

...which is basically a new line at 103 and a change to the indenting of line 104 (old line 103).

I haven't tested that change; I think I just commented out the error_win.display(...) line because I never want to see it (I run erminig frequently and don't care about transient connection-related errors).

nibbe 2011-03-10 09:31

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
I tried that code snippet, but not luck. It claims about unindents that don't match... Also tried to comment those, but still I get error messages... So am I getting error messages from somewhere else than google-connction itself? At least I tend to have some "strange until values" on log produced by erminig.

If GUI-error messages are raised by those, how I can deprecate those?

mdengler 2011-03-10 12:13

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

Originally Posted by nibbe (Post 964732)
I tried that code snippet, but not luck. It claims about unindents that don't match

Well, then you or I made a mistake See if you can make them match :)

Quote:

Originally Posted by nibbe (Post 964732)
... Also tried to comment those

"those"? I only mentioned one line.

Quote:

Originally Posted by nibbe (Post 964732)
am I getting error messages from somewhere else than google-connction itself?

Probably. grep for the messages you're seeing in the /usr/share/erminig/* files and see if there are other places you'll want to comment out...

Quote:

Originally Posted by nibbe (Post 964732)
At least I tend to have some "strange until values" on log produced by erminig.

I see those too; usually on recurring or all-day items. I'm not sure what problems that causes but I seem to sync fine despite those.

If GUI-error messages are raised by those, how I can deprecate those?[/QUOTE]

blobbyblobby2000 2011-03-24 10:25

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

I am running pr 1.3 no additional changes to the kernel or other main config.

Just had a problem with having changed my gmail password.

Trying to "Edit Account" I get

Code:

Traceback (most recent call last):
  File "/opt/maemo/usr/share/erminig/settings_ui.py", line 33, edit_google_acct(widget=<hildon.Button object at 0x41e07c38 (HildonButton at 0x542ca0)>, data=<hildon.Dialog object at 0x41e07a08 (HildonDialog at 0x53f9d0)>)
    def edit_google_acct(widget, data):
      id = get_google_acct_id()
      account = google_accounts.get_account_by_id(id)
  variables: {'id': ('builtin', <built-in function id>), 'get_google_acct_id': ('global', <function get_google_acct_id at 0x4142eab0>)}
  File "/opt/maemo/usr/share/erminig/settings_ui.py", line 12, get_google_acct_id()
            (model, iter) = ts.get_selected()
            return model.get_value(iter, 0)
  variables: {'model.get_value': ('local', <built-in method get_value of gtk.ListStore object at 0x41e07aa8>), 'iter': ('local', None)}
TypeError: iter must be a GtkTreeIter

I uninstalled and reinstalled and had same problem. I could only clear it by deleting .erminig.db in the home account. Is there any other config file that I should have vi'ed? instead of the rm erminig.db as this was quite drastic and I had to do a bit of manual tidying of duplicated events after re-install.

enki 2011-04-01 15:33

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Lorelei, thanks for good work on Erminig-NG. I am using it and I am almost happy ;) however you know the way you can have your calendar 'shared' with someonelse.

In Google Calendar you might have, let's say, two calendars: yours, the main one in blue and another one, the shared one, coloured in pink.

As you know you can define new calendars using 'Settings' and you can define there their colours and visibility but I remind you that only N900 would be marked with 'syncronised' and the rest would be 'Local' type calendars.

As you know, in Erminig-NG you can define how many 'calendar profiles' you want. i.e: two calendar google accounts from/to where you can syncronise your calendar.

How we can associate different colours to different calendars syncronised to/from two calendar google accounts? It would make more sense to have differentiate them using different colours in let's say, Home Calendar Widget by Nicolai, as Google is doing it

Enjoy the weekend,
Stefan

TheLongshot 2011-04-01 15:57

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Just curious, but am I the only one who had the alarm setting for the calendar set to 0 minutes after a sync? I only just started using it.

Kabouik 2011-04-16 15:34

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Can anyone tell me what is the difference between the yellow arrow button and the blue arrow button? I guess the yellow one only synchronizes the currently selected profile whereas the blue one synchronizes all profiles... But if true, why the yellow button is a single direction arrow? Does it mean it only synchronize from the remote calendar and not to it?

I'm confused by this icon as it provides two different informations: the "1" seems to indicate that it will only synchronize one profile, the single arrow seems to indicate that it will only synchronize in one direction.

Oh, and I have an issue with the synchronization by itself as all events synchronized from Google will be delayed by one day in the N900 calendar. I double checked, the clock and date of the N900 are correctly set. I don't understand why everything is postponed.

Halp. :[

By the way, great app!

uvatbc 2011-04-16 15:46

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

Originally Posted by Kabouik (Post 989929)
Can anyone tell me what is the difference between the yellow arrow button and the blue arrow button? I guess the yellow one only synchronizes the currently selected profile whereas the blue one synchronizes all profiles... But if true, why the yellow button is a single direction arrow? Does it mean it only synchronize from the remote calendar and not to it?

I'm confused by this icon as it provides two different informations: the "1" seems to indicate that it will only synchronize one profile, the single arrow seems to indicate that it will only synchronize in one direction.

Halp. :[

By the way, great app!

You are right: the arrow with the 1 will sync only one calendar. The other one will sync all calendars. However the direction of these arrows does not control the direction of sync. The rules that you created for each calendar determines the direction of the sync.
In other words those buttons control whether to run one rule or to run all rules.

Kabouik 2011-04-16 16:06

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Thank your for your quick answer uvatbc! The direction of the arrow is confusing but this is just appearance so!

Now I have to figure out why the synchronization delays my events in the N900!

x61 2011-04-17 12:51

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
So what is the new version? Can you put all the recent updates on in the first post? It is way easier to find that way..rather than reading through all the posts to find it.

Thanks

JensU 2011-04-20 21:57

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

Originally Posted by TheLongshot (Post 979935)
Just curious, but am I the only one who had the alarm setting for the calendar set to 0 minutes after a sync? I only just started using it.

the alarm time of events created on my n900 remain the same even after one sync or more. but the alarm time set by an event created in google calendar and synced to n900 is always set to 0.
another issue i realized is that full day events coming from google take 2 days on n900 after sync (e.g. "german holidays")

this app is really essential. thanks a lot and keep up the good work!

cheers!
jens

joliclic 2011-04-22 17:12

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

Originally Posted by JensU (Post 992853)
another issue i realized is that full day events coming from google take 2 days on n900 after sync (e.g. "german holidays")

I have the same problem. I've reported this issue some times ago, and just propose a temporary workaround ;) :
bug #12064

electristan 2011-04-28 09:43

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Hi, im try to apply the patch given for [Bug 12064] Full-day events from Google are synced to two day events and im unsure how.

its a *.patch file.

any help would be great :)

joliclic 2011-04-29 17:17

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

Originally Posted by electristan (Post 996678)
any help would be great :)

In your N900, you have to modify the file:
Code:

/opt/maemo/usr/share/erminig/erminig_core.py
replace the lines 264-265:
Code:

                        start_time += time.timezone
                        end_time += time.timezone

by these ones:
Code:

                        tz = time.timezone
                        if (time.daylight):
                                tz = time.altzone
                        start_time += tz
                        end_time += tz
                        #start_time += time.timezone
                        #end_time += time.timezone

I join to this post the modified file, so you can:
1- make a copy of the current file
2- overwrite it by the new one

The easiest way is to use ssh from another computer, but perhaps this can be not really friendly if this computer is not under Linux.

The other way is to install rootsh in the N900, and perform all the task from the terminal:

- download the file in your N900, and choose to put it in your main folder, not a sub-directory.

-then open a terminal, and go to the good directory:
Code:

cd MyDocs
- if you have put the file in a sub-directory, go into it:
Code:

cd mysub/folder/
- extract the file from the archive
Code:

tar -zxf erminig_bug12064.tar.gz
- now become root:
Code:

root
-make a copy of the current file of erminig
Code:

cp /opt/maemo/usr/share/erminig/erminig_core.py /opt/maemo/usr/share/erminig/erminig_core.py.bak
- go to the directory wich contains the new version:
Code:

cd /home/user/MyDoc
- and overwrite the file
Code:

cp -f erminig_core.py /opt/maemo/usr/share/erminig/erminig_core.py
Hope this help ;) .

electristan 2011-04-30 10:40

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
It worked perfectly :) thanks for taking the time to make the great howto

niv 2011-05-11 19:34

now we can add tasks
 
Updates:
Status: Fixed

Comment #616 on issue 987 by api.nico...@gmail.com: Request API for Tasks (in the Google Mail Interface)
http://code.google.com/p/gdata-issue.../detail?id=987

This issue is now resolved. We are happy to announce the launch of the Tasks API :)

More details on our blog post: http://googleappsdeveloper.blogspot....tasks-api.html


All times are GMT. The time now is 16:39.

vBulletin® Version 3.8.8