Scriptgpsbabel
#!/bin/bash
#!/bin/bash
#
# Copyright 2010 Luca Delucchi
# lucadeluge@gmail.com
# version 1.0
#
#
# This program is free software; you can redistribute it and/or odify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# Downloads data from GARMIN GPS
# PREREQUISITI
# Bisogna avere GPSBabel installato e il GPS accesso e collegato alla porta specificata in DIR_IN
# Inserisci il nome del tracciato che hai percorso
echo -n "Immetti il nome del \"tracciato\" "
read tracciato
# Inserisci la directory alla quale è collegato il tuo gps
DIR_IN=/dev/ttyUSB0
# Inserisci il modello del tuo gps
MODELLO=garmin
# Inserisci il tipo di output desiderato
OUT=gpx
# Scarica le tracks
gpsbabel -t -i $MODELLO -f $DIR_IN -o $OUT -F $tracciato$(date +%Y-%m-%d)_TRK.gpx
# Scarica i waypoints
gpsbabel -w -i $MODELLO -f $DIR_IN -o $OUT -F $tracciato$(date +%Y-%m-%d)_WPT.gpx
exit

News from www.lucadelu.org
