![]() |
Caller name, online fetching, python, dbus
Please give me some feedback on my code, hope you have some useful tips, first time i using python :-)
Why: I wanted to know who was calling even if i didn't have them in my abook. So far: I got a python script, that lisen for incoming calls on dbus. When it gets a number it ask my webserver for the name of that number (my server ask a few swedish sites for the name of the number) and return the name to python Python then makes a Notification whit the name. Left to do: * Id like this to be run in background somehow, having it in a terminal work nice for debuging, but i prefer somthing less visible later. * The notification is showing a icon, a paper whit a red X, id like to repalce this icon. * When i click the notification, somthing should happen, but i don't know what id like it to yet. Code: Code:
#! /usr/bin/env python2.5 |
Re: Caller name, online fetching, python, dbus
Hi,
I'm looking forward following the thread hopefully learning a bit of python.. I made some similar efforts myself a couple of weeks ago. picked up some code from the python callblocker script. and parsed eniro.se. then i got stuck on using urllib as I'm a newbie py Rgrds, oakbeach |
Re: Caller name, online fetching, python, dbus
Wow, this could prove useful since I also live in Sweden :D
I'll be monitoring this thread. |
Re: Caller name, online fetching, python, dbus
Quote:
hope i can learn some of what lirtex was doing on the same subject: http://talk.maemo.org/showthread.php?t=56088 Quote:
|
Re: Caller name, online fetching, python, dbus
Quote:
Code:
#! /usr/bin/env python2.5 |
Re: Caller name, online fetching, python, dbus
on a related note, does anyone know how to capture dbus events and have it trigger a shell script? this could be easily done on N900. is there a similar directory where i can install a shell script that gets called during dbus events?
|
All times are GMT. The time now is 20:16. |
vBulletin® Version 3.8.8