![]() |
Failed to listen to ClearCallNotification
I'm using the following pymaemo script to listen to the d-bus for ClearCallNotification (in order to know when a missed cal has been viewed).
PHP Code:
But none works. When I run "python dbs.py", get a missed call, and view it - it doesn't print "hi" as expected. What am I doing wrong?... |
Re: Failed to listen to ClearCallNotification
Anyone?
A python code for listening to a different d-bus would be useful as well |
Re: Failed to listen to ClearCallNotification
No d-bus guru's here?...
I'll try to be more verbal, maybe that will get some responses... I'm trying to catch the moment where the user is viewing a missed call. I used dbus-monitor to listen to session d-bus notifications. Then I called myself, and viewed the missed call yellow window. The response I got from the dbus-monitor was: Code:
method call sender=:1.675 -> dest=org.freedesktop.Telepathy.Client.NotificationUI serial=374 path=/org/freedesktop/Telepathy/Client/NotificationUI; interface=com.nokia.RtcomNotificationUi; member=ClearCallNotificationThis is what led me to the code above (in the first post) but it seems not to listen to that event. Anything I'm doing wrong?... |
Re: Failed to listen to ClearCallNotification
Hi Omerik, i am following this thread, but just to give it a boost i thought i'd say hi.
The only dbus i know is from Jebba's dbus pages. here I'm not sure how i can help, but i may tinker and try what you are doing next week - if i get anywhere i'll poop back and let you know :D |
Re: Failed to listen to ClearCallNotification
Quote:
Thank you very much for saying hi. I appreciate your help in the past and your experience with d-bus notifications (health check). The link you mentioned talks only about send notification and not listen notifications, what make me wonder if this is possible with pymaemo at all... I would be very grateful if you could try this next week :) |
Re: Failed to listen to ClearCallNotification
Quote:
I think when we do find out we need to update the wiki ourselves :D - would help everyone else. I know my code is taken from many sources, so i should open it up to the wiki when it is a bit tidier and break it down. |
Re: Failed to listen to ClearCallNotification
have you had a look at some of the QT Dbus wrappers ?
I know for sure you can listen to screen orientation, brightness, display state etc using these wrappers, not aware of what you mentioned above though. |
Re: Failed to listen to ClearCallNotification
What firmware version are you on?
If I run dbus-monitor I get Code:
signal sender=:1.28 -> dest=:1.27 serial=70 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=NotificationClosed |
Re: Failed to listen to ClearCallNotification
@noobmonkey, no doubt the wiki page needs to be refreshed with some code example of pymaemo for listening to different dbus services. I have no problem doing it when I'll found out how :)
@fred123, Thank you for your note. I'm using the latest firmware (3.2010.02-8). You are correct, the dbus-monitor output you mentioned above is indeed the d-bus notification for closing the window. The output I wrote is for clicking the yellow window (and by that opening the phone log). This also makes the yellow window to disappear, thus the confusion :) I did tried both notifications as well but unfortunately I still don't get the desired result (the method "handle_led" is never called"). @krk969, thank you very much. But I'm trying to do that with python, and it doesn't seem like the QT DBus wrappers has any PyQt implementation yet... |
Re: Failed to listen to ClearCallNotification
Quote:
Code:
apt-get install python2.5-qt4-dbusif you dont want to go via QT found this example that listens to incoming sms'es. |
| All times are GMT. The time now is 11:27. |
vBulletin® Version 3.8.8