The Navigatrix has been updated. The new website can be found at navigatrix.net.




Post new topic Reply to topic  [ 18 posts ] 
Author Message
 Post subject: GPS Data in ti Airmail

Joined: 05 Jul 2013, 08:53
Posts: 72
I do get GPS Data in OpenCPN with localhost:2947. How do I get this data into Airmail for position reporting. In the data set up in Airmail i get only TCP and UDP but not GPSD.

Can any buddy help me with this.

Ferdinand


Top
   
 
 Post subject: Re: GPS Data in ti Airmail
Site Admin

Joined: 05 Nov 2010, 01:00
Posts: 185
Position data is automatically inserted into airmail when you start it. You do not have to set it up. But you need to have gpsd running. Which is running by default. The script which inserts the data is /usr/loca/bin/airmail it gets started when you click on the airmail icon. In other words: an unmodified installation of navigatrix should do it already automatically.


Top
   
 
 Post subject: Re: GPS Data in ti Airmail

Joined: 05 Jul 2013, 08:53
Posts: 72
Hi David,

I had a separate GPS connected to the PTC Modem via a y-cable. it worked since years always without problem. Since yesterday it seems the GPS is demaged, no signal. I have an separate GPS via USB calbe connected to the system. It is working fine with OpenCPN. Once I had to install Airmail new, because it was corrupted. How do i now can get the GDSd Signal now in to Airmail.
Ferdinand


Top
   
 
 Post subject: Re: GPS Data in ti Airmail
Site Admin

Joined: 05 Nov 2010, 01:00
Posts: 185
You have to run airmail with the provided script. Try it from the terminal "ctrl+alt+t" and enter "airmail". this will run the script which updates the position within airmail.

Dont use the airmail icon from the new installation. Use the airmail icon in ssb radio->airmail instead. It will run the script and your new airmail installation.


Top
   
 
 Post subject: Re: GPS Data in ti Airmail

Joined: 05 Jul 2013, 08:53
Posts: 72
Hi David,

I tried all you posted but no result. I do have an old PTC-IIpro modem with 9pin serial connection.


Top
   
 
 Post subject: Re: GPS Data in ti Airmail
Site Admin

Joined: 05 Nov 2010, 01:00
Posts: 185
Try this: start navigatrix from from the usb stick like you did when you installed it. start opencpn to verify that the gps signal is already coming in (the boat has to be shown in red) . once the gps signal is there, start airmail. do not modify the configuration. the pactormodem does not matter at this moment, since the position is taken from the gps which you connected seperatly to the computer. check the position shown inside airmails position report. let me know what position you get.


Top
   
 
 Post subject: Re: GPS Data in ti Airmail

Joined: 05 Jul 2013, 08:53
Posts: 72
Hi David,

I started Navigatrix from the DVD and opened OpenCPN. The ship was red and the GPS data was correct. I started Airmail from the Icon and the following came on

Wine Mono Installer
we could not find Mono packages witch is needed for .Net application to work correctly. We can automatically download and install for you.
see: http://wiki.winehq.org/MONO

seems that some program is missing to support the network for the GPS data to get to Airmail.

I find Mono under the following directory

/opt/wine/dosdevices/c:/windows/mono/mono-2.0



can you help me with the installation procedures.

Ferdinand


Top
   
 
 Post subject: Re: GPS Data in ti Airmail

Joined: 05 Jul 2013, 08:53
Posts: 72
David,

If I start airmail from the terminal window, the following came on

lapalomadhpi@lapalomadhpi:~$ airmail
/usr/local/bin/airmail: Zeile 10: printf: 39.502699980: Ungültige Zahl.
/usr/local/bin/airmail: Zeile 20: printf: 59.569500000: Ungültige Zahl.
sed: -e Ausdruck #1, Zeichen 0: Kein vorheriger regulärer Ausdruck
/usr/local/bin/airmail: Zeile 38: cd: /home/lapalomadhpi/.wine/dosdevices/c:/Program\: Datei oder Verzeichnis nicht gefunden
ln: Die symbolische Verknüpfung »/home/lapalomadhpi/.wine/drive_c/users/lapalomadhpi/Public“ konnte nicht angelegt werden: Die Datei existiert bereits
XDG_VTNR=7
LC_PAPER=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
XDG_SESSION_ID=c2
SSH_AGENT_PID=1759
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/lapalomadhpi
LC_MONETARY=de_DE.UTF-8
CLUTTER_IM_MODULE=xim
SAL_USE_VCLPLUGIN=gtk
XDG_MENU_PREFIX=lxde-
SHELL=/bin/bash
TERM=xterm
LC_NUMERIC=de_DE.UTF-8
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-GOynky
USER=lapalomadhpi
LC_TELEPHONE=de_DE.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
SSH_AUTH_SOCK=/run/user/1000/keyring-GOynky/ssh
DEFAULTS_PATH=/usr/share/gconf/Navigatrix.default.path
XDG_CONFIG_DIRS=/etc/xdg/navigatrix/:/etc/xdg/xdg-Navigatrix:/etc/xdg
DESKTOP_SESSION=Navigatrix
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
QT_IM_MODULE=ibus
LC_IDENTIFICATION=de_DE.UTF-8
PWD=/home/lapalomadhpi
XMODIFIERS=@im=ibus
LANG=de_DE.UTF-8
GNOME_KEYRING_PID=1775
MANDATORY_PATH=/usr/share/gconf/Navigatrix.mandatory.path
GDM_LANG=en
LC_MEASUREMENT=de_DE.UTF-8
PAPERSIZE=a4
GDMSESSION=Navigatrix
_LXSESSION_PID=1698
SHLVL=2
HOME=/home/lapalomadhpi
XDG_SEAT=seat0
LANGUAGE=de_DE:en
XDG_CONFIG_HOME=/home/lapalomadhpi/.config
LOGNAME=lapalomadhpi
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-sCAGiROuzI,guid=56c85526113a607ec097e33158274086
XDG_DATA_DIRS=/usr/local/share:/etc/xdg/navigatrix:/usr/share/Navigatrix:/usr/local/share/:/usr/share/:/usr/share:/usr/share/gdm:/var/lib/menu-xdg
QT4_IM_MODULE=xim
LESSOPEN=| /usr/bin/lesspipe %s
TEXTDOMAIN=im-config
DISPLAY=:0
XDG_RUNTIME_DIR=/run/user/1000
GTK_IM_MODULE=xim
XDG_CURRENT_DESKTOP=LXDE
LC_TIME=de_DE.UTF-8
LESSCLOSE=/usr/bin/lesspipe %s %s
TEXTDOMAINDIR=/usr/share/locale/
LC_NAME=de_DE.UTF-8
XAUTHORITY=/home/lapalomadhpi/.Xauthority
_=/usr/bin/env
WINEPREFIX=/home/lapalomadhpi/.wine
err:menubuilder:init_xdg error looking up the desktop directory
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}


Top
   
 
 Post subject: Re: GPS Data in ti Airmail
Site Admin

Joined: 05 Nov 2010, 01:00
Posts: 185
start from the cd and ignore the mono package warning. mono is not needed thats why its not there.


Top
   
 
 Post subject: Re: GPS Data in ti Airmail

Joined: 05 Jul 2013, 08:53
Posts: 72
David,

i dit it an I do not see GPS data in Airmail.

Ferdinand


Top
   
 
 Post subject: Re: GPS Data in ti Airmail
Site Admin

Joined: 05 Nov 2010, 01:00
Posts: 185
what is the terminal output when you start it from cd ? can you start it in english mode please ? The output indicates that there might be a format problem.


Top
   
 
 Post subject: Re: GPS Data in ti Airmail

Joined: 05 Jul 2013, 08:53
Posts: 72
Hi David.

this is the result from CD and started airmail from the terminal vindow

nx@nx:~$ airmail
/usr/local/bin/airmail: line 38: cd: /home/nx/.wine/dosdevices/c:/Program\: No such file or directory
ln: failed to create symbolic link ‘/home/nx/.wine/drive_c/users/nx/Public’: File exists
XDG_VTNR=7
LC_PAPER=en_US.UTF-8
XDG_SESSION_ID=c8
LC_ADDRESS=en_US.UTF-8
SSH_AGENT_PID=2887
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/nx
LC_MONETARY=en_US.UTF-8
SAL_USE_VCLPLUGIN=gtk
XDG_MENU_PREFIX=lxde-
SHELL=/bin/bash
TERM=xterm
LC_NUMERIC=en_US.UTF-8
GNOME_KEYRING_CONTROL=/run/user/999/keyring-7SYTKe
USER=nx
LC_TELEPHONE=en_US.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
SSH_AUTH_SOCK=/run/user/999/keyring-7SYTKe/ssh
DEFAULTS_PATH=/usr/share/gconf/Navigatrix.default.path
XDG_CONFIG_DIRS=/etc/xdg/navigatrix/:/etc/xdg/xdg-Navigatrix:/etc/xdg
DESKTOP_SESSION=Navigatrix
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
LC_IDENTIFICATION=en_US.UTF-8
PWD=/home/nx
LANG=en_US.UTF-8
GNOME_KEYRING_PID=2965
MANDATORY_PATH=/usr/share/gconf/Navigatrix.mandatory.path
LC_MEASUREMENT=en_US.UTF-8
GDMSESSION=Navigatrix
_LXSESSION_PID=2745
SHLVL=2
HOME=/home/nx
XDG_SEAT=seat0
LANGUAGE=en
XDG_CONFIG_HOME=/home/nx/.config
LOGNAME=nx
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-ASzFGXziCk,guid=cc7d34c9e77d2e4bfb00b3005827aad5
XDG_DATA_DIRS=/usr/local/share:/etc/xdg/navigatrix:/usr/share/Navigatrix:/usr/local/share/:/usr/share/:/usr/share:/usr/share/gdm:/var/lib/menu-xdg
LESSOPEN=| /usr/bin/lesspipe %s
TEXTDOMAIN=im-config
DISPLAY=:0
XDG_RUNTIME_DIR=/run/user/999
XDG_CURRENT_DESKTOP=LXDE
LC_TIME=en_US.UTF-8
LESSCLOSE=/usr/bin/lesspipe %s %s
TEXTDOMAINDIR=/usr/share/locale/
LC_NAME=en_US.UTF-8
XAUTHORITY=/home/nx/.Xauthority
_=/usr/bin/env
WINEPREFIX=/home/nx/.wine
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}
Could not load wine-gecko. HTML rendering will be disabled.
wine: configuration in '/home/nx/.wine' has been updated.
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}
fixme:comm:set_queue_size insize 32768 outsize 32768 unimplemented stub
fixme:comm:set_queue_size insize 32768 outsize 32768 unimplemented stub
^Cfixme:console:CONSOLE_DefaultHandler Terminating process 8 on event 0
nx@nx:~$


Top
   
 
 Post subject: Re: GPS Data in ti Airmail

Joined: 05 Jul 2013, 08:53
Posts: 72
David,

I see in openCpn 15 39.5027N and 088 59.5695 W in Airmail I see 15 40.00 N and 089 00.00 W

It seems that Airmail is rounding up and not continuously tracking the position and speed etc.

Ferdinand


Last edited by lapaloma on 12 Nov 2016, 14:31, edited 1 time in total.

Top
   
 
 Post subject: Re: GPS Data in ti Airmail
Site Admin

Joined: 05 Nov 2010, 01:00
Posts: 185
did you get gps position when you run from cd in english and with the gps connected ? it seems the formating error is not there anymore in you last terminal output.


Top
   
 
 Post subject: Re: GPS Data in ti Airmail
Site Admin

Joined: 05 Nov 2010, 01:00
Posts: 185
so it seems to work now. gps position in airmail gets updated when you start it which should be good for most usage scenaries.


Top
   
 
 Post subject: Re: GPS Data in ti Airmail

Joined: 05 Jul 2013, 08:53
Posts: 72
David,

with my previous setup with an extra GPS through the PTC modem, the gps data was always tracking the position. I will see what is with my data cable from the GPS to fix the problem.

With the desktop installation on my PC I still not get the position in Airmail.

Thanks for your help

Ferdinand


Top
   
 
 Post subject: Re: GPS Data in ti Airmail
Site Admin

Joined: 05 Nov 2010, 01:00
Posts: 185
Go to the terminal and enter sudo gedit /usr/local/bin/airmail afterwards replace the contents of the file with the following code. This should fix the problem.

Quote:
#!/bin/bash
# latitude
lata=$(cat /etc/nx.lat|awk -F'.' '{print $1}')
latc=N
if [ $(echo $lata|grep -c -) -eq 1 ]; then
latc=S
fi
lata=$(echo $lata|grep -om1 "[[:digit:]]\{1,3\}")
latb=$(echo "scale=2;0.$(cat /etc/nx.lat|awk -F'.' '{print $2}')*60/1"|bc)
lat=$(echo -e "$lata\xb0$latb'$latc")

# longitude
lona=$(cat /etc/nx.lon|awk -F'.' '{print $1}')
lonc=E
if [ $(echo $lona|grep -c -) -eq 1 ]; then
lonc=W
fi
lona=$(echo $lona|grep -om1 "[[:digit:]]\{1,3\}")
lonb=$(echo "scale=2;0.$(cat /etc/nx.lon|awk -F'.' '{print $2}')*60/1"|bc)
lon=$(echo -e "$lona\xb0$lonb'$lonc")

# airmail.ini setup
cfg=/home/$USER/.wine/drive_c/users/Public/Application\ Data/Airmail/Airmail.ini
sed -e 's/'"$(cat "$cfg"|grep -i "Current Latitude")"'/Current Latitude='$lat'/g' <"${cfg}" >"${cfg}.new"
mv "${cfg}.new" "${cfg}"
sed -e 's/'"$(cat "$cfg"|grep -m1 "Latitude")"'/Latitude='$lat'/g' <"${cfg}" >"${cfg}.new"
mv "${cfg}.new" "${cfg}"
sed -e 's/'"$(cat "$cfg"|grep -i "Current Longitude")"'/Current Longitude='$lon'/g' <"${cfg}" >"${cfg}.new"
mv "${cfg}.new" "${cfg}"
sed -e 's/'"$(cat "$cfg"|grep -m1 "Longitude")"'/Longitude='$lon'/g' <"${cfg}" >"${cfg}.new"
mv "${cfg}.new" "${cfg}"

# save attachment watchdog
airsave&

# start airmail
cd $HOME/.wine/dosdevices/c\:/Program\ Files/Airmail/
ln -s $HOME/.wine/drive_c/users/Public/ $HOME/.wine/drive_c/users/$USER
env WINEPREFIX="$HOME/.wine"
wine $HOME/.wine/drive_c/Program\ Files/Airmail/Airmail3.exe


Top
   
 
 Post subject: Re: GPS Data in ti Airmail

Joined: 05 Jul 2013, 08:53
Posts: 72
Hi David,

after replacing the cable from the GPS to the PTCIIpro I do have my GPS continuously reading back in to Airmail position reporting.

Ferdinand


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ] 


Search for:
cron

Credits © 2010 - 2024