Notices


Reply
Thread Tools
Posts: 33 | Thanked: 2 times | Joined on Nov 2010
#11
with shorcutd , it s possible ?
 
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#12
Is there a dbus trigger or something that you can use, so you wouldn't have to run the script manually, and it would just be run automatically when a new SMS is received?
 
hawaii's Avatar
Posts: 1,030 | Thanked: 792 times | Joined on Jun 2009
#13
Originally Posted by 白い熊 View Post
Is there a dbus trigger or something that you can use, so you wouldn't have to run the script manually, and it would just be run automatically when a new SMS is received?
signal sender=:1.20 -> dest=(null destination) serial=39954 path=/com/nokia/phone/SMS; interface=Phone.SMS; member=incoming
 

The Following 2 Users Say Thank You to hawaii For This Useful Post:
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#14
Originally Posted by hawaii View Post
signal sender=:1.20 -> dest=(null destination) serial=39954 path=/com/nokia/phone/SMS; interface=Phone.SMS; member=incoming
It's been a while since I messed with dbus, so could you help me please? How do I pass this to dbus from CLI and make it run a script, let's say called `script.sh' on the event?

I also remember some early discussion on this, specifying the senders ID, i.e. phone number is passed in a separate dbus call or what have you, so you can't easily retrieve it? Is it possible?
 
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#15
Well, I really need help, I've checked out a couple of prime examples on dbus talk, notably on http://wiki.maemo.org/User:Jebba/DBUS and can't figure it out...
 
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#16
OK, I've messed around with Tailbone's script and can use it as a hook that passes the SMS text, once a message arrives.

How can I determine the phone number it was sent from?
 
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#17
I've solved that, now I'd just like to add a couple of options to the script to react to three different events, just passing control on these to a shell script. The events:

incoming call, phone ringing
answer, I get called and answer, or I'm calling and the other side answers
end call

I can't figure out the Python side, not familiar with the language.
EDIT: I mean the Perl side...

Last edited by 白い熊; 2010-12-18 at 18:24.
 

The Following 2 Users Say Thank You to 白い熊 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 14:01.