Received SMS going unnoticed
openmoko at ginguppin.de
Thu Nov 12 23:53:56 CET 2009
basically it should be possible, to write a rule for oeventsd in
rules.yaml (incoming sms should be an event supported).
if not, you could opimd-cli and do something like
opimd-cli messages query MessageRead 0 | grep "Numer of results:" | awk
which would print the number of unread (which 0 means, imo) messages
("Numer" is the correct typo :-), but better check again).
as long as the resulting number != 0, you could trigger a vibration.
DISPLAY=:0 qdbus --system org.freesmartphone.odeviced
org.freesmartphone.Device.LED.SetBlinking 60 3000
i still don't know, how to call directly via bash/dbus call, which would
be a tad less resource consuming.
DISPLAY=:0 qdbus --system org.freesmartphone.opimd
produces an error:
ValueError: invalid literal for int() with base 10: ''
More information about the community