#1  
Old 03-20-2012, 09:50 PM
dubbelsnurr dubbelsnurr is offline
Junior Member
 
Join Date: Mar 2012
Posts: 1
Default Python: Porting N900-Notifier to Harmattan

Hello,

I'm new to Qt and the Meego/Harmattan OS but nonetheless wanted to start to develop things for it. One of the things I missed when abandoning my Android was the Android Notifier application, that is to get a notification on your computer when receiving a call or so.

I looked around a bit and found this project: sourceforge.net/projects/n900notifier/ and tweaked it a little and got it running on my N9, forwarding call notifications to my Ubuntu desktop.

I'm not sure though how to get access to the number that's calling and comparing it to the contacts' phone numbers in the adress book.

I suspect that it's possible using PySide but I've never used that framework before, any help on this is greatly appreciated.

I've attached the files for the server (computer) and client (phone).

You need to install some packages available in the repository first:

Code:
apt-get install python-dbus python-gobject
Edit server.py and change HOST, PORT to your ip-address and port.
Edit client.py and change HOST, PORT to your computer's ip-address and port.

It might be necessary to open/forward the port in your firewall.


Copy the client.py file over to your phone and run it from the terminal

Code:
python client.py
Start the server (from the terminal: python server.py) and call your phone and you'll get a notification that your phone is ringing. I've only tested this on Harmattan PR 1.2 and Ubuntu 11.10, can't say how it works on other versions/operating systems.

If anyone is interested in porting this with me or have any ideas on how to access contacts/incoming call using python, do contact me, either write a post here or PM me.
Attached Files
File Type: zip call-notifier.zip (2.6 KB, 6 views)

Last edited by dubbelsnurr; 03-20-2012 at 10:07 PM. Reason: forgot some stuff
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KMPlayer for harmattan porting koos Handset 48 03-21-2012 03:06 AM
[Request] Harmattan OS porting for N900 blackjack4it Handset 1 10-18-2011 03:39 PM
Porting MeeGo N900 myselfv1 Handset 15 09-06-2011 07:12 PM
Harmattan, Python and PySide with QML mattaustin Application Developer Support 9 08-14-2011 11:29 PM
Lightsout porting to Harmattan cckwes Handset 6 08-09-2011 05:41 PM


All times are GMT. The time now is 01:13 PM.