Received SMS going unnoticed
Ben Wilson
ben at abcom.co.nz
Fri Nov 13 01:40:29 CET 2009
Thanks
That looks like a good place to start, i'll have a go at it.
Ben.
arne anka wrote:
> 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
> '{print $4}'
>
> 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/neo1973_vibrator
> 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
> /org/freesmartphone/PIM/Messages/Queries
> org.freesmartphone.PIM.MessageQuery.GetResultCount
>
> produces an error:
> ValueError: invalid literal for int() with base 10: ''
>
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.425 / Virus Database: 270.14.62/2499 - Release Date: 11/12/09 14:33:00
>
>
More information about the community
mailing list