Navit auf n900: Unterschied zwischen den Versionen

Aus Ethersex_Wiki
Wechseln zu: Navigation, Suche
(erst mal installieren: Workarround xterm beseitigt (überflüssig bei 0.5.0), Repos-Eintrag schöner)
(OSD den eigenen Wünschen anpassen: OSD.xml verewigt)
Zeile 44: Zeile 44:
  
 
[http://wiki.navit-project.org/index.php/OSD_Layouts#nibbler01_v0.2_for_Netbook_.26_widescreen Hier] gibt es viele Beispiele, wie man das OSD selber verändern kann- der Fantasie sind da keine Grenzen gesetzt!
 
[http://wiki.navit-project.org/index.php/OSD_Layouts#nibbler01_v0.2_for_Netbook_.26_widescreen Hier] gibt es viele Beispiele, wie man das OSD selber verändern kann- der Fantasie sind da keine Grenzen gesetzt!
 +
 +
Für navit 0.5.0 verwende ich diese OSD.xml:
 +
 +
<source lang="xml">
 +
<!-- osd items allow to position display and control items directly on top of the map: -->
 +
<osd enabled="yes" type="eta"/>
 +
<osd enabled="yes" type="navigation_distance_to_target"/>
 +
<osd enabled="yes" type="navigation"/>
 +
<osd enabled="yes" type="navigation_distance_to_next"/>
 +
<osd enabled="yes" type="navigation_next_turn" x="0" y="-130"/>
 +
 +
<osd enabled="yes" type="compass" x="-110" y="-60"
 +
        font_size="250" w="60" h="160" background_color="#000000c8"/>
 +
<osd enabled="yes" type="gps_status" x="-50" y="-60"
 +
        w="50" h="40" background_color="#000000c8"/>
 +
<osd enabled="yes" type="text" label="${vehicle.position_sats_signal}/${vehicle.position_qual}" x="-50" y="-20"
 +
        font_size="250" w="50" h="20" align="0" background_color="#000000c8"/>
 +
<osd enabled="yes" type="text" label="${vehicle.position_speed}" x="0" y="-60"
 +
        font_size="400" w="110" h="60" align="4" background_color="#000000c8"/>
 +
<osd enabled="yes" type="text" label="ETA: ${navigation.item.destination_time[arrival]}" x="110" y="-30"
 +
        font_size="300" w="170" h="30" align="4" background_color="#000000c8"/>
 +
<osd enabled="yes" type="text" label="${navigation.item.destination_length[named]}" x="280" y="-30"
 +
        font_size="300" w="170" h="30" align="4" background_color="#000000c8"/>
 +
<osd enabled="yes" type="text" label="${navigation.item.destination_time[remaining]}" x="450" y="-30"
 +
        font_size="300" w="240" h="30" align="4" background_color="#000000c8"/>
 +
<osd enabled="yes" type="text" label="In ${navigation.item[1].length[named]} " x="0" y="0"
 +
        font_size="500" w="245" h="40" align="4" background_color="#000000c8"/>
 +
<osd enabled="yes" type="navigation_next_turn" x="245" y="0"
 +
        font_size="500" w="60" h="40" background_color="#000000c8" icon_src="$NAVIT_SHAREDIR/xpm/%s_wh_48_48.png" />
 +
<osd enabled="yes" type="text" label="Onto ${navigation.item[1].street_name}" x="305" y="0"
 +
        font_size="500" w="495" h="40" align="4" background_color="#000000c8"/>
 +
<osd enabled="yes" type="text" label="${navigation.item.street_name}" x="110" y="-60"
 +
        font_size="500" w="580" h="30" align="0" background_color="#000000c8"/>
 +
 +
<!-- Commands include gui_internal_menu, gui_internal_fullscreen, zoom_in and zoom_out.
 +
        Usage of negative values change the button origins. x="0" y="0" specifies the top left, x="-0" y="-0" the bottom right corner.
 +
        It's always the top left corner of the icon, so you need to consider the icon's size when you enter the values. -->
 +
<osd enabled="yes" type="button" x="-60" y="50" command="zoom_in()" src="gui_zoom_in.svg"/>
 +
<osd enabled="yes" type="button" x="-70" y="130" command="gui.menu()" src="gui_menu.svg"/>
 +
<osd enabled="yes" type="button" x="-60" y="220" command="gui.fullscreen=!gui.fullscreen" src="gui_fullscreen.svg"/>
 +
<osd enabled="yes" type="toggle_announcer" x="-175" y="365" w="60" h="60" />
 +
<osd enabled="yes" type="button" x="-60" y="-120" command="zoom_out()" src="gui_zoom_out.svg"/>
 +
</source>
  
 
=== Schöne KFZ-Halterung ===
 
=== Schöne KFZ-Halterung ===

Version vom 17. Dezember 2011, 22:45 Uhr

Navit auf n900

immer noch nicht über Version 0.2 hinausgekommen, aber dafür das einzige richtige "offline"-Navi für Maemo, das nichts kostet!

erst mal installieren

Ich benutze dieses Repository im fapman:

Name: navit
URL: http://www.chollya.org/navit/
Distribution: /
Components:

und dann wie gewohnt apt-get install navit bzw. fapman

Jetzt muss man sich auch noch die Konfig selber anlegen:

cd /home/user
mkdir .navit
cp /etc/navit/navit.xml /home/user/.navit/navit.xml 

Dummerweise sind einige Icons nicht im Paket enthalten bzw. nicht im xpm-Format, das navit hier sehen will. Ich habe hier ein tar-Archiv mit (fast) allen fehlenden Icons- einfach herunterladen und die fehlenden in /opt/navit/share/navit/xpm/ kopieren!

Kartenmaterial

kann man sich mit gewünschtem Ausschnitt hier als Binärfile herunterladen oder man benutzt die festen Ausschnitte hier, so wie ich- Germany zur Zeit 366M (:wink:)

Navigation mit Sprachanweisungen in Deutsch (:cool:)

das Paket "espeak" muss installiert sein, die Konfigurationsdatei speech.xml erzeugt man bis Navit 0.2.0 mit diesem Kommando:

echo '<speech type="cmdline" data="echo '%s' | sed s/\\./Komma/g | espeak -vde+m2+croak" cps="10"/>' > /home/user/.navit/speech.xml


ab Version 0.5.0 geht das so leider nicht mehr, dann muss es heißen

echo '<speech type="cmdline" data="espeak -vde+m2+croak '%s'" cps="10"/>' > /home/user/.navit/speech.xml

OSD den eigenen Wünschen anpassen

Hier gibt es viele Beispiele, wie man das OSD selber verändern kann- der Fantasie sind da keine Grenzen gesetzt!

Für navit 0.5.0 verwende ich diese OSD.xml:

<!-- osd items allow to position display and control items directly on top of the map: -->
<osd enabled="yes" type="eta"/> 
<osd enabled="yes" type="navigation_distance_to_target"/> 
<osd enabled="yes" type="navigation"/> 
<osd enabled="yes" type="navigation_distance_to_next"/> 
<osd enabled="yes" type="navigation_next_turn" x="0" y="-130"/> 

<osd enabled="yes" type="compass" x="-110" y="-60"
        font_size="250" w="60" h="160" background_color="#000000c8"/>
<osd enabled="yes" type="gps_status" x="-50" y="-60"
        w="50" h="40" background_color="#000000c8"/>
<osd enabled="yes" type="text" label="${vehicle.position_sats_signal}/${vehicle.position_qual}" x="-50" y="-20"
        font_size="250" w="50" h="20" align="0" background_color="#000000c8"/>
<osd enabled="yes" type="text" label="${vehicle.position_speed}" x="0" y="-60"
        font_size="400" w="110" h="60" align="4" background_color="#000000c8"/>
<osd enabled="yes" type="text" label="ETA: ${navigation.item.destination_time[arrival]}" x="110" y="-30"
        font_size="300" w="170" h="30" align="4" background_color="#000000c8"/>
<osd enabled="yes" type="text" label="${navigation.item.destination_length[named]}" x="280" y="-30"
        font_size="300" w="170" h="30" align="4" background_color="#000000c8"/>
<osd enabled="yes" type="text" label="${navigation.item.destination_time[remaining]}" x="450" y="-30"
        font_size="300" w="240" h="30" align="4" background_color="#000000c8"/>
<osd enabled="yes" type="text" label="In ${navigation.item[1].length[named]} " x="0" y="0"
        font_size="500" w="245" h="40" align="4" background_color="#000000c8"/>
<osd enabled="yes" type="navigation_next_turn" x="245" y="0"
        font_size="500" w="60" h="40" background_color="#000000c8" icon_src="$NAVIT_SHAREDIR/xpm/%s_wh_48_48.png" />
<osd enabled="yes" type="text" label="Onto ${navigation.item[1].street_name}" x="305" y="0"
        font_size="500" w="495" h="40" align="4" background_color="#000000c8"/>
<osd enabled="yes" type="text" label="${navigation.item.street_name}" x="110" y="-60"
        font_size="500" w="580" h="30" align="0" background_color="#000000c8"/>

<!-- Commands include gui_internal_menu, gui_internal_fullscreen, zoom_in and zoom_out.
        Usage of negative values change the button origins. x="0" y="0" specifies the top left, x="-0" y="-0" the bottom right corner.
        It's always the top left corner of the icon, so you need to consider the icon's size when you enter the values. -->
<osd enabled="yes" type="button" x="-60" y="50" command="zoom_in()" src="gui_zoom_in.svg"/>
<osd enabled="yes" type="button" x="-70" y="130" command="gui.menu()" src="gui_menu.svg"/>
<osd enabled="yes" type="button" x="-60" y="220" command="gui.fullscreen=!gui.fullscreen" src="gui_fullscreen.svg"/>
<osd enabled="yes" type="toggle_announcer" x="-175" y="365" w="60" h="60" />
<osd enabled="yes" type="button" x="-60" y="-120" command="zoom_out()" src="gui_zoom_out.svg"/>

Schöne KFZ-Halterung

Ich habe mir für das Auto eine schöne KFZ-Halterung von brodit geleistet (ca. 20€) bei Amazon.

Beispiel-Konfiguration

Hier habe ich noch meine drei Konfigurations-Dateien als Beispiel, einfach alle drei ins .navit kopieren. Es wird Karte hier erwartet:

<!-- Mapset template for openstreetmaps -->
		<mapset enabled="no">
			<map type="binfile" enabled="yes" data="/media/mmc1/osm_germany.bin"/>
		</mapset>

Jetzt viel Spaß beim Navigieren und nicht vergessen- auch auf die Straße gucken und nicht nur auf das Navi (:rolleyes:)