navit / making announcement not execute a command line call as well

2011-11-13 Thread robin
Maybe someone from the openmoko list is using navit and has an idea if one can
make the announcement tag not only announce the the next direction to turn to
but also to execute a command as well.

My idea would be to have navit fully dimmed if one is travelling on the correct
path. Once a there are crossings and directions are announced the display will
change brightness via a fso call. once travelling on the right track again the
display should be dimmed again.

anyone has any idea?


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: navit / making announcement not execute a command line call as well

2011-11-13 Thread Ed Kapitein
Hi Robin,

I have something like this in my navit.xml:
speech type=cmdline data=/home/navit/scripts/say_it.sh '%s'/

and /home/navit/scripts/say_it.sh is a script  that does some post
processing for speech,
but you can make it do anything i guess.
The %s is passed on to the script as command line parameters, so you
could first handle
$* in the script and then dim/brighten the screen.

Kind regards,
Ed


On 11/13/2011 07:32 PM, robin wrote:
 Maybe someone from the openmoko list is using navit and has an idea if one can
 make the announcement tag not only announce the the next direction to turn to
 but also to execute a command as well.

 My idea would be to have navit fully dimmed if one is travelling on the 
 correct
 path. Once a there are crossings and directions are announced the display will
 change brightness via a fso call. once travelling on the right track again the
 display should be dimmed again.

 anyone has any idea?


 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community




___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community