navit-project.org

forum for navit navigation tool
It is currently 21 Nov 2017, 20:57
View unanswered posts | View active topics


All times are UTC


Forum rules


Feel free to ask anything here related to the installation and configuration of Navit.

Some notes before your first post:

Please provide as much informations as possible:



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: spawn / outputting the street name
PostPosted: 20 Jan 2017, 15:43 
Offline

Joined: 17 Jan 2016, 13:56
Posts: 3
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?


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Silver Orange 2.0.6 for IPB Designed by Skins and Hosting
Converted for phpBB3, based on Royal Blue template by BigB © 2007 2008 AEON KINGS