Results 1 to 13 of 13
Like Tree1Likes
  • 1 Post By mazzinia
  1.    #1  
    I got Navit installed on a pre2, but am having difficulty understanding how to change skins and from km to miles. I've read the instructions for both, but I guess I don't understand the programing language enough to get either tweak to work.
    I was able to open the navit.xml in appdata/org.webosinternals.navit/ but didn't find anything relating to skins (as in the Wiki) nor did I find anything with "Imperial" to change in order to the program to show miles.
    Any help or suggestions? Thanks in advance.
    J
  2. PreRunr's Avatar
    Posts
    344 Posts
    Global Posts
    345 Global Posts
    #2  
    Copied from the wiki...........
    If you want to use imperial, just add imperial="1" into your navit tag, i.e.

    <navit ... imperial="1" ... >

    This is in the navit.xml text file about Line 36. This file is in \appdata\org.webosinternals.navit so you do this in USB mode with a text editor.
  3.    #3  
    Thanks for the suggestion! I read the same Wiki and it wasn't helpful. I opened the navit.xml text file, however there is no way of telling which line is line 36 (they're not numbered and the text is jumbled together). I don't know what my "navit tag" is & it looks like there is more to add between the < & > symbols than just navit... imperial="1"...

    I apologize if I'm being too dense.

    I'll check it again, maybe I overlooked something.
  4. PreRunr's Avatar
    Posts
    344 Posts
    Global Posts
    345 Global Posts
    #4  
    Your text editor (not a document editor like MS Word) should show the line number if its any good. The tag is there already and it has already got instructions in it. It does not matter what the line number is that's just a hint to save you some time in searching for it.

    You just add the extra one imperial="1" next to the others.
  5.    #5  
    Quote Originally Posted by PreRunr View Post
    Your text editor (not a document editor like MS Word) should show the line number if its any good. The tag is there already and it has already got instructions in it. It does not matter what the line number is that's just a hint to save you some time in searching for it.

    You just add the extra one imperial="1" next to the others.
    I still am lost. What is a "navit tag"?

    I've looked many, many times and have not found the word "imperial" nor have I found anything resembling the <navit ... imperial="1" ... > to add the "1" to.

    Frustrating
  6. #6  
    Okay, let's try it this way:
    Find the line starting with
    Code:
    	<navit center=
    .
    The next line should contain
    Code:
    osd_configuration="1">
    Insert imperial="1", so that it looks like
    Code:
    osd_configuration="1" imperial="1">
    .

    Hope this helps.
  7.    #7  
    Quote Originally Posted by noradtux View Post
    Okay, let's try it this way:
    Find the line starting with
    Code:
    	<navit center=
    .
    The next line should contain
    Code:
    osd_configuration="1">
    Insert imperial="1", so that it looks like
    Code:
    osd_configuration="1" imperial="1">
    .

    Hope this helps.
    that does help more, unfortunately my file doesn't contain the 'osd' line
    <?xml version="1.0" encoding="UTF-8"?><!--
    For configuration options used in this file, please read
    http://wiki.navit-project.org/index.php/Configuring_NavIt
    Do not edit /usr/share/navit/navit.xml : changes would be lost
    on upgrade. Rather copy it to ~/.navit/. Please read wiki
    -->
    <!DOCTYPE config
    SYSTEM "navit.dtd">
    <config xmlns:xi="http://www.w3.org/2001/XInclude">
    <plugins>
    <plugin path="$NAVIT_LIBDIR/*/lib*.so" ondemand="yes"/>
    <plugin path="$NAVIT_LIBDIR/autoload/lib*.so"/>
    <plugin path="$NAVIT_LIBDIR/*/libbinding_dbus.so" active="no"/>
    <plugin path="$NAVIT_LIBDIR/*/libgraphics_null.so" active="no"/>
    <plugin path="$NAVIT_LIBDIR/*/libplugin_pedestrian.so" active="no"/>
    </plugins>

    <debug name="navit:do_draw" level="0"/>
    <!-- This is here so one can copy&paste the contents of popup menus -->
    <debug name="navitopup_printf_cb" level="0"/>
    <debug name="vehicle_webos" level="0"/>
    <debug name="graphics_sdl" level="0"/>
    <debug name="navit:xdisplay_draw_elements" level="0"/>
    <debug name="navit:graphics_remove_selection" level="0"/>
    <!-- segv: 1 - show backtrace with gdb and exit, 2 - stay in gdb -->
    <debug name="segv" level="1"/>
    <!-- timestamps 0/1 - prefix log messages with a timestamp -->
    <debug name="timestamps" level="0"/>
    <!-- This line defines which location on the map navit will show after startup.
    It makes sense to set it to your home coordinates.
    Center coordinates format:
    [D][D]DMM.ss[S][S]... N/S [D][D]DMM.ss[S][S]... E/W
    [-][D]D.d[d]... [-][D][D]D.d[d]...
    [-]0xX [-]0xX -->

    <navit center="0x10b6f5 0x6c435d" zoom="64" tracking="1" orientation="-1" recent_dest="10" autozoom_active="1" pitch="20">
    <!-- Use one of gtk_drawing_area, qt_qpainter or sdl. -->
    <graphics type="sdl"/>
    <!-- for a debug log -->
    <log enabled="no" type="textfile_debug" data="debug_%Y%m%d-%i.txt" flush_size="1000" flush_time="30"/>

    <vehicle name="GPS" lag="15" profilename="car" enabled="yes" follow="1" active="1" source="webos://"/>
    <!--( 17:18 Rikky ) hape: there is the parameter "lag" for vehicle, which projects
    the car position the specified time ahead. however it does not
    work very well, because it only uses gps data for the projection.
    lag="20" would project the car position 2seconds ahead -->

    <!--<vehicle name="Demo" profilename="car" enabled="yes" active="yes" source="demo://"/>-->

    <!-- For the cumulative displacement filter to be enabled, set cdf_histsize="x" here, with x being an integer somewhere around 4 -->
    <tracking cdf_histsize="3" tunnel_extrapolation="12" />

    <route destination_distance="50"/>

    <navigation>
    <announce type="street_0,street_1_city" level0="25" level1="100" level2="200" unit="m"/>
    <announce type="street_2_city,street_3_city,street_4_city,ramp" level0="50" level1="200" level2="500" unit="m"/>
    <announce type="highway_city,street_1_land,street_2_land,street_3_land,street_4_land" level0="100" level1="400" level2="1000" unit="m"/>
    <announce type="street_n_lanes,highway_land" level0="300" level1="1000" level2="2000" unit="m"/>
    </navigation>

    <!-- Navit provides speech output in text format.
    If you have a speech synthesizer like festival lite installed, you can get turn by turn directions out of navit. Please set the "cps"-value to how many characters your tts engine approximately speaks per second.
    The default is text output to the shell -->
    <!-- <speech type="cmdline" data="echo '%s'" cps="15"/>-->
    <!-- <speech type="cmdline" data="/media/cryptofs/apps/usr/palm/applications/org.webosinternals.espeak/espeak '%s'" cps="15"/> -->
    <!-- <speech type="cmdline" data="flite -t '%s'"/> -->
    <speech type="speech_dispatcher" data="100" cps="15" />

    <xi:include href="$NAVIT_USER_DATADIR/maps/*.xml"/>
    <xi:include href="$NAVIT_USER_DATADIR/guis/*.xml"/>
    <xi:include href="$NAVIT_USER_DATADIR/osds/*.xml"/>
    <xi:include href="$NAVIT_USER_DATADIR/layouts/*.xml"/>
    <xi:include href="$NAVIT_USER_DATADIR/vehicle-profiles/*.xml"/>
    </navit>
    </config>

    can I just add it myself?
  8.    #8  
    bump
  9. #9  
    hmm, your file looks outdated. did you do modifications to it?

    Anyway, change the line
    Code:
    <navit center="0x10b6f5 0x6c435d" zoom="64" tracking="1" orientation="-1" recent_dest="10" autozoom_active="1" pitch="20">
  10.    #10  
    Quote Originally Posted by noradtux View Post
    hmm, your file looks outdated. did you do modifications to it?

    Anyway, change the line
    Code:
    <navit center="0x10b6f5 0x6c435d" zoom="64" tracking="1" orientation="-1" recent_dest="10" autozoom_active="1" pitch="20">
    nope, no modifications.downloaded from preware. Thanks for the help
  11. stefi01's Avatar
    Posts
    2 Posts
    Global Posts
    1 Global Posts
    #11  
    so where would i put that in the navit i have
    <navit center="5090 N 1400 W" zoom="3" tracking="1" orientation="-1" recent_dest="250" osd_configuration="1" timeout="1" radius="25" autozoom_active="0">
    already tried orientation="-1" imperial="1"
    tryed with adding it in the line as insert and deleted nothing, also tried adding and removing what was after it and included the />
  12. stefi01's Avatar
    Posts
    2 Posts
    Global Posts
    1 Global Posts
    #12  
    ok, corect my last coment, i managed to get that working as it was said how to do it, so the question is, how do i change the kmp to miles on the lower left corner, the display:

    ok to add to this, managed to change km/h to mph on the osd

    its in .navit/skins/n4/n4.xml file at line 39
    Last edited by stefi01; 01/08/2015 at 10:28 AM.
  13. #13  
    remember to use this version of navit
    Navit release thread (current)
    not the one on preware ( it's older )
    TJs11thPre likes this.

Posting Permissions