Re: [Telepathy] XEP-0080 Support not working
Am Friday 12 October 2012 schrieb Guillaume Desmottes: > Le jeudi 11 octobre 2012 à 21:29 +0200, Rainer Dorsch a écrit : > > Am Tuesday 09 October 2012 schrieb Guillaume Desmottes: > > > Le lundi 08 octobre 2012 à 22:19 +0200, Rainer Dorsch a écrit : > > > > Am Monday 08 October 2012 schrieb Guillaume Desmottes: > > > > > Le vendredi 05 octobre 2012 à 23:47 +0200, Rainer Dorsch a écrit : > > > > > > I am struggling somewhat with the empathy logs. I can only select > > > > > > Empathy.FileTransfer in the Empathy debug view. For reference I > > > > > > uploaded some logs to > > > > > > > > > > > > http://bokomoko.de/~rd/telepathy/ > > > > > > > > > > Looking at this log you are connected using > > > > > kathrin.dor...@jabber.org and receive a location from > > > > > rdor...@jabber.org, but you say that Empathy doesn't display any > > > > > location for rdor...@jabber.org is that right? > > > > > > > > Yes, that is correct. > > > > > > Sounds like, at least, like an Empathy bug then. Please report one. :) > > > > I opened a bug report > > > > https://bugs.freedesktop.org/show_bug.cgi?id=55884 > > > > BTW, since the location seems to be transfered correctly, how much is > > missing to build a cmd line jabber client, which could write the > > location to disk (e.g. as gpx)? If you think less than a day of work, > > can you give me some pointers to get started (e.g. is there a hello > > world like app, which logs into a jabber server and logs the > > conversation, account information hardcoded is fine as a hello world > > like starting point...) > > It shouldn't be too hard. Actually I already have a small test script > listing the location of all your contacts. > > Check telepathy-glib API reference if you want to tweak it. > Thanks for that very nice script :-) I have currently the issue, that if len(location) == 0: is always true. For debugging purposes I also added some messages. contact.get_presence_status() returns an empty string, although one contact is online. The API reference says: "This may be an empty string if this TpContact object has not been set up to track TP_CONTACT_FEATURE_PRESENCE. It is never NULL." How do I "track a feature"? Thanks, Rainer -- Rainer Dorsch http://bokomoko.de/ ___ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] XEP-0080 Support not working
Le jeudi 11 octobre 2012 à 21:29 +0200, Rainer Dorsch a écrit : > Am Tuesday 09 October 2012 schrieb Guillaume Desmottes: > > Le lundi 08 octobre 2012 à 22:19 +0200, Rainer Dorsch a écrit : > > > Am Monday 08 October 2012 schrieb Guillaume Desmottes: > > > > Le vendredi 05 octobre 2012 à 23:47 +0200, Rainer Dorsch a écrit : > > > > > I am struggling somewhat with the empathy logs. I can only select > > > > > Empathy.FileTransfer in the Empathy debug view. For reference I > > > > > uploaded some logs to > > > > > > > > > > http://bokomoko.de/~rd/telepathy/ > > > > > > > > Looking at this log you are connected using kathrin.dor...@jabber.org > > > > and receive a location from rdor...@jabber.org, but you say that > > > > Empathy doesn't display any location for rdor...@jabber.org is that > > > > right? > > > > > > Yes, that is correct. > > > > Sounds like, at least, like an Empathy bug then. Please report one. :) > > I opened a bug report > > https://bugs.freedesktop.org/show_bug.cgi?id=55884 > > BTW, since the location seems to be transfered correctly, how much is missing > to build a cmd line jabber client, which could write the location to disk > (e.g. as gpx)? If you think less than a day of work, can you give me some > pointers to get started (e.g. is there a hello world like app, which logs > into > a jabber server and logs the conversation, account information hardcoded is > fine as a hello world like starting point...) It shouldn't be too hard. Actually I already have a small test script listing the location of all your contacts. Check telepathy-glib API reference if you want to tweak it. G. #!/usr/bin/env python import os import datetime from gi.repository import GObject GObject.threads_init() from gi.repository import TelepathyGLib as Tp def display_location(account, contact): assert contact.has_feature(Tp.ContactFeature.LOCATION) location = contact.get_location() if len(location) == 0: return try: timestamp = location['timestamp'] d = datetime.datetime.fromtimestamp(timestamp) timestamp = d.strftime('%c') except KeyError: timestamp = '' print "%s" % contact.get_identifier() print "\ton %s" % account.get_path_suffix() print "\t%s" % timestamp print "\t%r" % location print "" def manager_prepared_cb(manager, result, loop): manager.prepare_finish(result) for account in manager.get_valid_accounts(): connection = account.get_connection() if connection is None: continue self_contact = connection.get_self_contact() display_location(account, self_contact) # Verify account is online and received its contact list. If state is not # SUCCESS this means we didn't received the roster from server yet and # we would have to wait for the "notify:contact-list-state" signal. */ if connection.get_contact_list_state() == Tp.ContactListState.SUCCESS: contacts = connection.dup_contact_list() for contact in contacts: display_location(account, contact) loop.quit() if __name__ == '__main__': Tp.debug_set_flags(os.getenv('EXAMPLE_DEBUG', '')) loop = GObject.MainLoop() manager = Tp.AccountManager.dup() factory = manager.get_factory() factory.add_account_features([Tp.Account.get_feature_quark_connection()]) factory.add_connection_features([Tp.Connection.get_feature_quark_contact_list()]) factory.add_contact_features([Tp.ContactFeature.LOCATION]) manager.prepare_async(None, manager_prepared_cb, loop) loop.run() ___ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] XEP-0080 Support not working
Am Tuesday 09 October 2012 schrieb Guillaume Desmottes: > Le lundi 08 octobre 2012 à 22:19 +0200, Rainer Dorsch a écrit : > > Am Monday 08 October 2012 schrieb Guillaume Desmottes: > > > Le vendredi 05 octobre 2012 à 23:47 +0200, Rainer Dorsch a écrit : > > > > I am struggling somewhat with the empathy logs. I can only select > > > > Empathy.FileTransfer in the Empathy debug view. For reference I > > > > uploaded some logs to > > > > > > > > http://bokomoko.de/~rd/telepathy/ > > > > > > Looking at this log you are connected using kathrin.dor...@jabber.org > > > and receive a location from rdor...@jabber.org, but you say that > > > Empathy doesn't display any location for rdor...@jabber.org is that > > > right? > > > > Yes, that is correct. > > Sounds like, at least, like an Empathy bug then. Please report one. :) I opened a bug report https://bugs.freedesktop.org/show_bug.cgi?id=55884 BTW, since the location seems to be transfered correctly, how much is missing to build a cmd line jabber client, which could write the location to disk (e.g. as gpx)? If you think less than a day of work, can you give me some pointers to get started (e.g. is there a hello world like app, which logs into a jabber server and logs the conversation, account information hardcoded is fine as a hello world like starting point...) Thanks, Rainer -- Rainer Dorsch http://bokomoko.de/ ___ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] XEP-0080 Support not working
Le lundi 08 octobre 2012 à 22:19 +0200, Rainer Dorsch a écrit : > Am Monday 08 October 2012 schrieb Guillaume Desmottes: > > Le vendredi 05 octobre 2012 à 23:47 +0200, Rainer Dorsch a écrit : > > > I am struggling somewhat with the empathy logs. I can only select > > > Empathy.FileTransfer in the Empathy debug view. For reference I uploaded > > > some logs to > > > > > > http://bokomoko.de/~rd/telepathy/ > > > > Looking at this log you are connected using kathrin.dor...@jabber.org > > and receive a location from rdor...@jabber.org, but you say that Empathy > > doesn't display any location for rdor...@jabber.org is that right? > > > > Yes, that is correct. Sounds like, at least, like an Empathy bug then. Please report one. :) G. ___ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] XEP-0080 Support not working
Am Monday 08 October 2012 schrieb Guillaume Desmottes: > Le vendredi 05 octobre 2012 à 23:47 +0200, Rainer Dorsch a écrit : > > I am struggling somewhat with the empathy logs. I can only select > > Empathy.FileTransfer in the Empathy debug view. For reference I uploaded > > some logs to > > > > http://bokomoko.de/~rd/telepathy/ > > Looking at this log you are connected using kathrin.dor...@jabber.org > and receive a location from rdor...@jabber.org, but you say that Empathy > doesn't display any location for rdor...@jabber.org is that right? > Yes, that is correct. Rainer -- Rainer Dorsch http://bokomoko.de/ ___ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] XEP-0080 Support not working
Le vendredi 05 octobre 2012 à 23:47 +0200, Rainer Dorsch a écrit : > I am struggling somewhat with the empathy logs. I can only select > Empathy.FileTransfer in the Empathy debug view. For reference I uploaded some > logs to > > http://bokomoko.de/~rd/telepathy/ Looking at this log you are connected using kathrin.dor...@jabber.org and receive a location from rdor...@jabber.org, but you say that Empathy doesn't display any location for rdor...@jabber.org is that right? G. ___ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] XEP-0080 Support not working
Guillaume, thanks for your quick reply and the useful information. I saw that you uploaded azimuth to maemo to give the n900 xep-0080 support. Thanks for that as well. See comments below. Am Thursday 04 October 2012 schrieb Guillaume Desmottes: > Le mercredi 03 octobre 2012 à 22:25 +0200, Rainer Dorsch a écrit : > > Hello, > > > > > > > > I share my location from my N900 using XEP-0080 (azimuth daemon). The > > receiving side is empathy. In the debug console empathy reports that > > it receives the location. > > > > e.g. see the last lines in http://pastebin.com/XjyBi3Nb > > There is some bugs in our location code (see for example > https://bugs.freedesktop.org/show_bug.cgi?id=36389 ) but looking at your > logs Gabble does seem to receive the notification change so I guess it's > not the issue. Hmmnow I do not receive the notification change anymore. Same clients are used on both sides, same jabber ids, same versions of empathy,... not sure what changed. Maybe the startup sequence? Not even sure which side changed the publishing side (n900) or the receiving side (empathy on debian). Is there another client which can display or log the location of the contact, to figure out which side has the problem? > > Note that this map view has been removed in recent version of Empathy > (it was rarely used and didn't really belong in Empathy, it should be > re-implemented in a map app like Emerillon) but we still display the > contact location the roster contact tooltip. I guess it doesn't appear > here either? I use empathy 3.4.2.3 from Debian. No I see no location information in the tooltip of the roster view of empathy. > > Feel free to open an Empathy bug and please attach Gabble and Empathy > logs. I am struggling somewhat with the empathy logs. I can only select Empathy.FileTransfer in the Empathy debug view. For reference I uploaded some logs to http://bokomoko.de/~rd/telepathy/ The old log which contained location information in the log is still here http://pastebin.com/XjyBi3Nb Thanks, Rainer > > > G. > > > 1. > > > > But no contacts are displayed on the map. > > > > > > > > Does anybody have an idea what could go wrong or if I am > > missing something? > > > > > > > > Many thanks, > > > > Rainer > > ___ > telepathy mailing list > telepathy@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/telepathy -- Rainer Dorsch http://bokomoko.de/ ___ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] XEP-0080 Support not working
Le mercredi 03 octobre 2012 à 22:25 +0200, Rainer Dorsch a écrit : > Hello, > > > > I share my location from my N900 using XEP-0080 (azimuth daemon). The > receiving side is empathy. In the debug console empathy reports that > it receives the location. > > e.g. see the last lines in http://pastebin.com/XjyBi3Nb There is some bugs in our location code (see for example https://bugs.freedesktop.org/show_bug.cgi?id=36389 ) but looking at your logs Gabble does seem to receive the notification change so I guess it's not the issue. Note that this map view has been removed in recent version of Empathy (it was rarely used and didn't really belong in Empathy, it should be re-implemented in a map app like Emerillon) but we still display the contact location the roster contact tooltip. I guess it doesn't appear here either? Feel free to open an Empathy bug and please attach Gabble and Empathy logs. G. > > > > 1. > > But no contacts are displayed on the map. > > > > Does anybody have an idea what could go wrong or if I am > missing something? > > > > Many thanks, > > Rainer > > -- > > Rainer Dorsch > > http://bokomoko.de/ > > ___ > telepathy mailing list > telepathy@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/telepathy ___ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
[Telepathy] XEP-0080 Support not working
Hello, I share my location from my N900 using XEP-0080 (azimuth daemon). The receiving side is empathy. In the debug console empathy reports that it receives the location. e.g. see the last lines in http://pastebin.com/XjyBi3Nb * message xmlns='jabber:client' from='rdor...@jabber.org' to='kathrin.dor...@jabber.org/3be446a6' type='headline' id='8b0eff22adae5642' * event xmlns='http://jabber.org/protocol/pubsub#event' * items node='http://jabber.org/protocol/geoloc' * item id='fd36e956fd314800' * geoloc xmlns='http://jabber.org/protocol/geoloc' " " * lat "48.605620" * lon "9.106284" * alt "10.00" * accuracy "771.17" * timestamp "2012-10-03T20:00:08Z" gabble/location-DEBUG: 03.10.2012 22:00:11.790860: update_location_from_item (conn-location.c:545): LocationsUpdate for rdor...@jabber.org: gabble/location-DEBUG: 03.10.2012 22:00:11.790937: update_location_from_item (conn-location.c:587): - lat: 48.605620 gabble/location-DEBUG: 03.10.2012 22:00:11.791002: update_location_from_item (conn-location.c:587): - lon: 9.106284 gabble/location-DEBUG: 03.10.2012 22:00:11.791062: update_location_from_item (conn-location.c:587): - alt: 10.00 gabble/location-DEBUG: 03.10.2012 22:00:11.791121: update_location_from_item (conn-location.c:587): - accuracy: 771.17 gabble/location-DEBUG: 03.10.2012 22:00:11.791182: update_location_from_item (conn-location.c:595): - timestamp: 2012-10-03T20:00:08Z But no contacts are displayed on the map. Does anybody have an idea what could go wrong or if I am missing something? Many thanks, Rainer -- Rainer Dorsch http://bokomoko.de/ ___ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy