navit-project.org
http://forum.navit-project.org/

spawn / outputting the street name
http://forum.navit-project.org/viewtopic.php?f=12&t=622
Page 1 of 1

Author:  Bwguffey [ 20 Jan 2017, 15:43 ]
Post subject:  spawn / outputting the street name

Hello;

In my application, I need to periodically send tracking.item.street_name to a bash script (called, for instance, "dosomething.sh"). My osd item looks like this:

Code:
<osd name="dumpstreet" enabled="yes" update_period="10" type="cmd_interface" command='
   set_attr_var("streetname", tracking.item.street_name);
   spawn("/usr/local/bin/dosomething.sh", get_attr_var("streetname"))
'/>


Works fine if I replace tracking.item.street_name with any of the vehicle.* placeholders (integers), but not with the tracking.item.* or navigation.item.* placeholders. I can't get any of the placeholders to work referencing them with like ${ ... }.

Is there anything I can do here or am I SOL?

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/