pax_global_header00006660000000000000000000000064114354304720014515gustar00rootroot0000000000000052 comment=4ff7780cbdf06c2fd0b2aa04ec0eb930df62b339 gmtkbabel-0.1/000077500000000000000000000000001143543047200133055ustar00rootroot00000000000000gmtkbabel-0.1/AUTHORS000066400000000000000000000000611143543047200143520ustar00rootroot00000000000000Elena Grandi David Paleino gmtkbabel-0.1/COPYING000066400000000000000000000030551143543047200143430ustar00rootroot00000000000000Copyright © 2010, Elena Grandi Copyright © 2010, David Paleino All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the Elena Grandi, David Paleino nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ELENA GRANDI OR DAVID PALEINO BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. gmtkbabel-0.1/Changelog000066400000000000000000000013161143543047200151200ustar00rootroot000000000000000.1 --- Upstream changed, now David Paleino takes care of the package. The project moved to github, and is now reachable at http://dpaleino.github.com/gmtkbabel/ Features: - localization support + it.po: Italian translation - added simple Makefile - added manpage - dropped dependency on bash, just a POSIX sh is needed now - make it act like a normal application: back to main menu when subscripts are done 0.0~20100824 ------------ First release by Elena Grandi, available on http://www.trueelena.org/computers/scripts/gmtkbabel.html Features: - scripts can be used in-place, not meant for system-widec installation - self-contained scripts, everything needed is inside them! gmtkbabel-0.1/Makefile000066400000000000000000000036531143543047200147540ustar00rootroot00000000000000INSTALL = install RM = rm PREFIX = /usr VERSION = 0.1 SCRIPTS = \ src/download.sh \ src/erase.sh \ src/gmtkbabel \ src/set_format.sh \ src/set_frequency.sh all: build build: update-po for l in $(shell cat po/LINGUAS); do \ msgfmt po/$$l.po -o po/$$l.mo; \ done gzip -9c gmtkbabel.1 > gmtkbabel.1.gz update-po: $(SCRIPTS) xgettext --language=shell --from-code=utf-8 \ --copyright-holder="David Paleino " \ --package-name="gmtkbabel" \ --package-version="$(VERSION)" \ --msgid-bugs-address="d.paleino@gmail.com" \ $(SCRIPTS) -o po/gmtkbabel.pot for l in $(shell cat po/LINGUAS); do \ msgmerge --update --backup=none po/$$l.po po/gmtkbabel.pot; \ done installdirs: $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/gmtkbabel/ $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin/ $(INSTALL) -d $(DESTDIR)/etc $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/man/man1/ for l in $(shell cat po/LINGUAS); do \ $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/locale/$$l/LC_MESSAGES/; \ done install: build installdirs $(INSTALL) src/gmtkbabel $(DESTDIR)$(PREFIX)/bin/ $(INSTALL) -m 644 src/*.sh $(DESTDIR)$(PREFIX)/share/gmtkbabel/ $(INSTALL) -m 644 gmtkbabel.conf $(DESTDIR)/etc/ for l in $(shell cat po/LINGUAS); do \ $(INSTALL) -m 644 po/$$l.mo \ $(DESTDIR)$(PREFIX)/share/locale/$$l/LC_MESSAGES/gmtkbabel.mo; \ done $(INSTALL) -m 644 gmtkbabel.1.gz $(DESTDIR)$(PREFIX)/share/man/man1/ uninstall: $(RM) -rf $(DESTDIR)$(PREFIX)/share/gmtkbabel/ $(RM) -rf $(DESTDIR)$(PREFIX)/bin/gmtkbabel find $(DESTDIR)$(PREFIX)/share/locale -name "gmtkbabel.mo" -delete $(RM) -rf $(DESTDIR)$(PREFIX)/share/man/man1/gmtkbabel.1.gz clean: $(RM) -rf po/*.mo $(RM) -rf gmtkbabel.1.gz dist: git tag -s -f -m "$(VERSION) release" $(VERSION) git tag -s -f -m "Latest release" latest git archive --format=tar --prefix=gmtkbabel-$(VERSION)/ $(VERSION) | \ gzip -9 > gmtkbabel-$(VERSION).tar.gz gmtkbabel-0.1/README000066400000000000000000000014041143543047200141640ustar00rootroot00000000000000This is a set of simple scripts that give a graphical interface to the most used options of MTKBabel, an excellent command line program to manage i-Blue 747 GPS data loggers and other MTK based devices. Installation ------------ You need to install the following dependencies: * `Zenity `_; usually preinstalled with GNOME * `MTKBabel `_; available in most distributions. Then run "make" and, as root, "make install". Be sure to edit /etc/gmtkbabel.conf! License ------- These scripts are relased under the 3-clause BSD license. If you plan to distribute it and its dependencies, remember that both mtkbabel and zenity are released under the GNU GPL. gmtkbabel-0.1/gmtkbabel.1000066400000000000000000000010361143543047200153170ustar00rootroot00000000000000.TH GMTKBABEL 1 .SH NAME gmtkbabel - Zenity GUI to mtkbabel .SH SYNOPSIS .PP .B gmtkbabel .SH DESCRIPTION This manual page documents briefly the \fBgmtkbabel\fR command. .PP \fBgmtkbabel\fR consists of a set of shell scripts that, using \fBzenity\fR, provide a graphical interface to the command-line program \fBmtkbabel\fR. .SH SEE ALSO .BR mtkbabel (1) .SH AUTHOR \fBgmtkbabel\fR was written by David Paleino and Elena Grandi. .SH HOMEPAGE The project homepage is located at: .br http://dpaleino.github.com/gmtkbabel/ gmtkbabel-0.1/gmtkbabel.conf000066400000000000000000000002341143543047200161030ustar00rootroot00000000000000# Configuration for gmtkbabel # Logger device PORT=/dev/ttyACM0 # Default logging directory DIR=~ # Default log *base* name FNAME=`date +%Y-%m-%d_%H:%M` gmtkbabel-0.1/po/000077500000000000000000000000001143543047200137235ustar00rootroot00000000000000gmtkbabel-0.1/po/LINGUAS000066400000000000000000000000031143543047200147410ustar00rootroot00000000000000it gmtkbabel-0.1/po/gmtkbabel.pot000066400000000000000000000062631143543047200164060ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) 2010 David Paleino # This file is distributed under the same license as the gmtkbabel package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: gmtkbabel 0.1\n" "Report-Msgid-Bugs-To: d.paleino@gmail.com\n" "POT-Creation-Date: 2010-08-26 10:41+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: src/download.sh:12 msgid "iBlue 747 download" msgstr "" #: src/download.sh:13 msgid "It seems that the file exists: overwrite it?" msgstr "" #: src/download.sh:14 msgid "Operation cancelled" msgstr "" #: src/erase.sh:12 msgid "iBlue 747 erase" msgstr "" #: src/erase.sh:13 msgid "Erase logger memory?" msgstr "" #: src/gmtkbabel:11 msgid "iBlue 747 manager" msgstr "" #: src/gmtkbabel:12 msgid "Select what to do" msgstr "" #: src/gmtkbabel:14 msgid "Action" msgstr "" #: src/gmtkbabel:15 msgid "Download data from the logger" msgstr "" #: src/gmtkbabel:16 msgid "Erase data in the logger" msgstr "" #: src/gmtkbabel:17 msgid "Set logging format" msgstr "" #: src/gmtkbabel:18 msgid "Set logging frequency" msgstr "" #: src/set_format.sh:12 msgid "iBlue 747 set format" msgstr "" #: src/set_format.sh:14 msgid "Select a profile" msgstr "" #: src/set_format.sh:16 msgid "Preset" msgstr "" #: src/set_format.sh:17 src/set_format.sh:34 msgid "Description" msgstr "" #: src/set_format.sh:19 msgid "Light" msgstr "" #: src/set_format.sh:20 msgid "Essential fields, lots of points" msgstr "" #: src/set_format.sh:22 msgid "Full" msgstr "" #: src/set_format.sh:23 msgid "Everything: note that satellite data takes lots of space" msgstr "" #: src/set_format.sh:25 msgid "No sat data" msgstr "" #: src/set_format.sh:26 msgid "Everything except sat data, reasonable size" msgstr "" #: src/set_format.sh:28 msgid "Custom" msgstr "" #: src/set_format.sh:29 msgid "Select which fields should be saved" msgstr "" #: src/set_format.sh:31 msgid "Select the fields you want the logger to save" msgstr "" #: src/set_format.sh:32 msgid "Save?" msgstr "" #: src/set_format.sh:33 msgid "Field" msgstr "" #: src/set_format.sh:36 msgid "Timestamp" msgstr "" #: src/set_format.sh:37 msgid "Position fix" msgstr "" #: src/set_format.sh:38 msgid "Latitude" msgstr "" #: src/set_format.sh:39 msgid "Longitude" msgstr "" #: src/set_format.sh:43 msgid "DGPS Station ID Number." msgstr "" #: src/set_format.sh:44 msgid "Number of seconds since last DGPS update." msgstr "" #: src/set_format.sh:52 msgid "Recording method" msgstr "" #: src/set_frequency.sh:12 msgid "iBlue 747 Set Frequency" msgstr "" #: src/set_frequency.sh:13 msgid "Log every n seconds (0 to disable)" msgstr "" #: src/set_frequency.sh:14 msgid "Log every n meters (0 to disable)" msgstr "" #: src/set_frequency.sh:15 msgid "Log over n km/h (0 to log at any speed)" msgstr "" #: src/set_frequency.sh:16 msgid "On memory full" msgstr "" #: src/set_frequency.sh:17 msgid "Stop logging" msgstr "" #: src/set_frequency.sh:18 msgid "Overwrite older points" msgstr "" gmtkbabel-0.1/po/it.po000066400000000000000000000103141143543047200146760ustar00rootroot00000000000000# Italian translations for gmtkbabel package # Traduzioni italiane per il pacchetto gmtkbabel. # Copyright (C) 2010 David Paleino # This file is distributed under the same license as the gmtkbabel package. # David Paleino , 2010. # msgid "" msgstr "" "Project-Id-Version: gmtkbabel 0.1\n" "Report-Msgid-Bugs-To: d.paleino@gmail.com\n" "POT-Creation-Date: 2010-08-26 10:41+0200\n" "PO-Revision-Date: 2010-08-24 19:17+0100\n" "Last-Translator: David Paleino \n" "Language-Team: Italian\n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/download.sh:12 msgid "iBlue 747 download" msgstr "Download iBlue 747" #: src/download.sh:13 msgid "It seems that the file exists: overwrite it?" msgstr "Sembra che il file esista: sovrascriverlo?" #: src/download.sh:14 msgid "Operation cancelled" msgstr "Operazione annullata" #: src/erase.sh:12 msgid "iBlue 747 erase" msgstr "Cancellazione iBlue 747" #: src/erase.sh:13 msgid "Erase logger memory?" msgstr "Cancellare la memoria del logger?" #: src/gmtkbabel:11 msgid "iBlue 747 manager" msgstr "Gestore iBlue 747" #: src/gmtkbabel:12 msgid "Select what to do" msgstr "Scegli cosa fare" #: src/gmtkbabel:14 msgid "Action" msgstr "Azione" #: src/gmtkbabel:15 msgid "Download data from the logger" msgstr "Scarica dati dal logger" #: src/gmtkbabel:16 msgid "Erase data in the logger" msgstr "Elimina dati dal logger" #: src/gmtkbabel:17 msgid "Set logging format" msgstr "Imposta formato del log" #: src/gmtkbabel:18 msgid "Set logging frequency" msgstr "Imposta frequenza del log" #: src/set_format.sh:12 msgid "iBlue 747 set format" msgstr "Impostazione formato iBlue 747" #: src/set_format.sh:14 msgid "Select a profile" msgstr "Scegli un profilo" #: src/set_format.sh:16 msgid "Preset" msgstr "Profilo" #: src/set_format.sh:17 src/set_format.sh:34 msgid "Description" msgstr "Descrizione" #: src/set_format.sh:19 msgid "Light" msgstr "Leggero" #: src/set_format.sh:20 msgid "Essential fields, lots of points" msgstr "Campi essenziali, molti punti" #: src/set_format.sh:22 msgid "Full" msgstr "Tutto" #: src/set_format.sh:23 msgid "Everything: note that satellite data takes lots of space" msgstr "Tutto: nota che i dati del satellite occupano molto spazio" #: src/set_format.sh:25 msgid "No sat data" msgstr "No sat" #: src/set_format.sh:26 msgid "Everything except sat data, reasonable size" msgstr "Tutto tranne i dati satellitari, dimensioni ragionevoli" #: src/set_format.sh:28 msgid "Custom" msgstr "Personalizzato" #: src/set_format.sh:29 msgid "Select which fields should be saved" msgstr "Scegli quali dati registrare" #: src/set_format.sh:31 msgid "Select the fields you want the logger to save" msgstr "Scegli quali dati registrare" #: src/set_format.sh:32 msgid "Save?" msgstr "Salva?" #: src/set_format.sh:33 msgid "Field" msgstr "Dato" #: src/set_format.sh:36 msgid "Timestamp" msgstr "Ora" #: src/set_format.sh:37 msgid "Position fix" msgstr "Fix posizione" #: src/set_format.sh:38 msgid "Latitude" msgstr "Latitudine" #: src/set_format.sh:39 msgid "Longitude" msgstr "Longitudine" #: src/set_format.sh:43 msgid "DGPS Station ID Number." msgstr "ID stazione DGPS." #: src/set_format.sh:44 msgid "Number of seconds since last DGPS update." msgstr "Numero di secondi dall'ultimo aggiornamento DGPS." #: src/set_format.sh:52 msgid "Recording method" msgstr "Metodo di memorizzazione" #: src/set_frequency.sh:12 msgid "iBlue 747 Set Frequency" msgstr "Imposta frequenza iBlue 747" #: src/set_frequency.sh:13 msgid "Log every n seconds (0 to disable)" msgstr "Registra ogni n secondi (0 per disabilitare)" #: src/set_frequency.sh:14 msgid "Log every n meters (0 to disable)" msgstr "Registra ogni n metri (0 per disabilitare)" #: src/set_frequency.sh:15 msgid "Log over n km/h (0 to log at any speed)" msgstr "Registra ogni n km/h (0 per qualunque velocità)" #: src/set_frequency.sh:16 msgid "On memory full" msgstr "Quando la memoria è piena" #: src/set_frequency.sh:17 msgid "Stop logging" msgstr "Ferma la registrazione" #: src/set_frequency.sh:18 msgid "Overwrite older points" msgstr "Sovrascrivi i punti più vecchi" gmtkbabel-0.1/src/000077500000000000000000000000001143543047200140745ustar00rootroot00000000000000gmtkbabel-0.1/src/common.sh000066400000000000000000000002531143543047200157200ustar00rootroot00000000000000. gettext.sh export TEXTDOMAINDIR=/usr/share/locale/ export TEXTDOMAIN=gmtkbabel for dir in /etc/gmtkbabel.conf ~/.config/gmtkbabel.conf; do [ -r $dir ] && . $dir done gmtkbabel-0.1/src/download.sh000077500000000000000000000021321143543047200162400ustar00rootroot00000000000000#!/bin/sh # Copyright © 2010, Elena Grandi # Copyright © 2010, David Paleino # # Released under 3-clause BSD license; see COPYING for details. . /usr/share/gmtkbabel/common.sh # ****** Strings ************************************************************* # S_TITLE="`gettext \"iBlue 747 download\"`" S_CONFIRM_OVERWRITE="`gettext \"It seems that the file exists: overwrite it?\"`" S_CANCEL="`gettext \"Operation cancelled\"`" # ****** Script (do not edit below this point) ******************************* # TRK_NAME=`zenity --file-selection --title="$S_TITLE" \ --save --filename=$DIR/$FNAME` if [ -e "$TRK_NAME".gpx ] || [ -e "$TRK_NAME"_trk.gpx ] || \ [ -e "$TRK_NAME"_wpt.gpx ] || [ -e "$TRK_NAME".bin ] then if ! zenity --question --title="$S_TITLE" \ --text="$S_CONFIRM_OVERWRITE" then exit 1 fi fi if [ -n "$TRK_NAME" ]; then mtkbabel -p $PORT -l off -f "$TRK_NAME" -w -t >"$TRK_NAME".log 2>&1 mtkbabel -p $PORT -l on >>"$TRK_NAME".log 2>&1 cat "$TRK_NAME".log | zenity --text-info else zenity --error --text "$S_CANCEL" fi gmtkbabel-0.1/src/erase.sh000077500000000000000000000013511143543047200155320ustar00rootroot00000000000000#!/bin/sh # Copyright © 2010, Elena Grandi # Copyright © 2010, David Paleino # # Released under 3-clause BSD license; see COPYING for details. . /usr/share/gmtkbabel/common.sh # ****** Strings ************************************************************* # S_TITLE="`gettext \"iBlue 747 erase\"`" S_CONFIRM_ERASE="`gettext \"Erase logger memory?\"`" # ****** Script (do not edit below this point) ******************************* # TMPFILE=`mktemp /tmp/gmtkbabel.XXX` trap "rm -rf $TMPFILE; exit" INT TERM EXIT; if zenity --question --title="$S_TITLE" --text="$S_CONFIRM_ERASE" then mtkbabel -p $PORT -l off -E >$TMPFILE 2>&1 mtkbabel -p $PORT -l on >>$TMPFILE 2>&1 cat $TMPFILE | zenity --text-info fi gmtkbabel-0.1/src/gmtkbabel000077500000000000000000000034101143543047200157500ustar00rootroot00000000000000#!/bin/sh # Copyright © 2010, David Paleino # # Released under 3-clause BSD license; see COPYING for details. . /usr/share/gmtkbabel/common.sh # ****** Strings ************************************************************* # S_TITLE="`gettext \"iBlue 747 manager\"`" S_TEXT="`gettext \"Select what to do\"`" S_PRESET_TITLE="`gettext \"Action\"`" S_DOWNLOAD="`gettext \"Download data from the logger\"`" S_ERASE="`gettext \"Erase data in the logger\"`" S_SETFORMAT="`gettext \"Set logging format\"`" S_SETFREQUENCY="`gettext \"Set logging frequency\"`" # ****** Script (do not edit below this point) ******************************* # while [ 1 = 1 ]; do WHAT=`zenity --list --title="$S_TITLE" --text="$S_TEXT" \ --column "$S_PRESET_TITLE" \ "$S_DOWNLOAD" \ "$S_ERASE" \ "$S_SETFORMAT" \ "$S_SETFREQUENCY" ` case "$WHAT" in "$S_DOWNLOAD" ) if [ -r download.sh ]; then ./download.sh elif [ -r /usr/share/gmtkbabel/download.sh ]; then exec sh /usr/share/gmtkbabel/download.sh fi ;; "$S_ERASE" ) if [ -r erase.sh ]; then ./erase.sh elif [ -r /usr/share/gmtkbabel/erase.sh ]; then exec sh /usr/share/gmtkbabel/erase.sh fi ;; "$S_SETFORMAT" ) if [ -r set_format.sh ]; then ./set_format.sh elif [ -r /usr/share/gmtkbabel/set_format.sh ]; then exec sh /usr/share/gmtkbabel/set_format.sh fi ;; "$S_SETFREQUENCY" ) if [ -r set_frequency.sh ]; then ./set_frequency.sh elif [ -r /usr/share/gmtkbabel/set_frequency.sh ]; then exec sh /usr/share/gmtkbabel/set_frequency.sh fi ;; * ) break 2 ;; esac done gmtkbabel-0.1/src/set_format.sh000077500000000000000000000076311143543047200166050ustar00rootroot00000000000000#!/bin/sh # Copyright © 2010, Elena Grandi # Copyright © 2010, David Paleino # # Released under 3-clause BSD license; see COPYING for details. . /usr/share/gmtkbabel/common.sh # ****** Strings ************************************************************* # S_TITLE="`gettext \"iBlue 747 set format\"`" S_PRESET="`gettext \"Select a profile\"`" S_PRESET_TITLE="`gettext \"Preset\"`" S_PRESET_DESC="`gettext \"Description\"`" S_P_LIGHT="`gettext \"Light\"`" S_P_LIGHT_D="`gettext \"Essential fields, lots of points\"`" S_P_FULL="`gettext \"Full\"`" S_P_FULL_D="`gettext \"Everything: note that satellite data takes lots of space\"`" S_P_NOSAT="`gettext \"No sat data\"`" S_P_NOSAT_D="`gettext \"Everything except sat data, reasonable size\"`" S_P_CUSTOM="`gettext \"Custom\"`" S_P_CUSTOM_D="`gettext \"Select which fields should be saved\"`" S_SELECT_FIELDS="`gettext \"Select the fields you want the logger to save\"`" S_SAVE="`gettext \"Save?\"`" S_FIELD="`gettext \"Field\"`" S_DESC="`gettext \"Description\"`" S_D_UTC="`gettext \"Timestamp\"`" S_D_VALID="`gettext \"Position fix\"`" S_D_LATITUDE="`gettext \"Latitude\"`" S_D_LONGITUDE="`gettext \"Longitude\"`" S_D_HEIGHT="" S_D_SPEED="" S_D_HEADING="" S_D_DSTA="`gettext \"DGPS Station ID Number.\"`" S_D_DAGE="`gettext \"Number of seconds since last DGPS update.\"`" S_D_PDOP="" S_D_VDOP="" S_D_NSAT="" S_D_SID="" S_D_ELEVATION="" S_D_AZIMUTH="" S_D_SNR="" S_D_RCR="`gettext \"Recording method\"`" S_D_MILLISECOND="" S_D_DISTANCE="" # ****** Script (do not edit below this point) ******************************* # TMPFILE=`mktemp /tmp/gmtkbabel.XXX` trap "rm -rf $TMPFILE; exit" INT TERM EXIT; case `zenity --list --title="$S_TITLE" --text="$S_PRESET" \ --column "$S_PRESET_TITLE" --column "$S_PRESET_DESC" \ "$S_P_LIGHT" "$S_P_LIGHT_D" \ "$S_P_FULL" "$S_P_FULL_D" \ "$S_P_NOSAT" "$S_P_NOSAT_D" \ "$S_P_CUSTOM" "$S_P_CUSTOM_D" ` in "$S_P_LIGHT" ) mtkbabel -p $PORT -o UTC,VALID,LATITUDE,LONGITUDE,-HEIGHT,SPEED,-HEADING,-DSTA,-DAGE,-PDOP,-HDOP,-VDOP,-NSAT,-SID,-ELEVATION,-AZIMUTH,-SNR,RCR,-MILLISECOND,-DISTANCE -l on \ >$TMPFILE 2>&1 ;; "$S_P_FULL" ) mtkbabel -p $PORT -o UTC,VALID,LATITUDE,LONGITUDE,HEIGHT,SPEED,HEADING,DSTA,DAGE,PDOP,HDOP,VDOP,NSAT,SID,ELEVATION,AZIMUTH,SNR,RCR,MILLISECOND,DISTANCE -l on \ >$TMPFILE 2>&1 ;; "$S_P_NOSAT" ) mtkbabel -p $PORT -o UTC,VALID,LATITUDE,LONGITUDE,HEIGHT,SPEED,HEADING,DSTA,DAGE,PDOP,HDOP,VDOP,NSAT,-SID,-ELEVATION,-AZIMUTH,-SNR,RCR,MILLISECOND,DISTANCE -l on \ >$TMPFILE 2>&1 ;; "$S_P_CUSTOM" ) if FIELDS=`zenity --list --title="$S_TITLE" --text="$S_CONFIRM_ERASE" \ --checklist --multiple --separator "," \ --column "$S_SAVE" --column "$S_FIELD" --column "$S_DESC" \ TRUE UTC "$S_D_UTC" \ TRUE VALID "$S_D_VALID" \ TRUE LATITUDE "$S_D_LATITUDE" \ TRUE LONGITUDE "$S_D_LONGITUDE" \ FALSE HEIGHT "$S_D_HEIGHT" \ TRUE SPEED "$S_D_SPEED" \ FALSE HEADING "$S_D_HEADING" \ FALSE DSTA "$S_D_DSTA" \ FALSE DAGE "$S_D_DAGE" \ FALSE PDOP "$S_D_PDOP" \ FALSE HDOP "$S_D_HDOP" \ FALSE VDOP "$S_D_VDOP" \ FALSE NSAT "$S_D_NSAT" \ FALSE SID "$S_D_SID" \ FALSE ELEVATION "$S_D_ELEVATION" \ FALSE AZIMUTH "$S_D_AZIMUTH" \ FALSE SNR "$S_D_SNR" \ TRUE RCR "$S_D_RCR" \ FALSE MILLISECOND "$S_D_MILLISECOND" \ FALSE DISTANCE "$S_D_DISTANCE" ` then mtkbabel -p $PORT -o -UTC,-VALID,-LATITUDE,-LONGITUDE,-HEIGHT,-SPEED,-HEADING,-DSTA,-DAGE,-PDOP,-HDOP,-VDOP,-NSAT,-SID,-ELEVATION,-AZIMUTH,-SNR,-RCR,-MILLISECOND,-DISTANCE -l on \ >$TMPFILE 2>&1 mtkbabel -p $PORT -o $FIELDS >>$TMPFILE 2>&1 fi ;; esac cat $TMPFILE | zenity --text-info gmtkbabel-0.1/src/set_frequency.sh000077500000000000000000000027731143543047200173200ustar00rootroot00000000000000#!/bin/sh # Copyright © 2010, Elena Grandi # Copyright © 2010, David Paleino # # Released under 3-clause BSD license; see COPYING for details. . /usr/share/gmtkbabel/common.sh # ****** Strings ************************************************************* # S_TITLE="`gettext \"iBlue 747 Set Frequency\"`" S_SELECT_TIME="`gettext \"Log every n seconds (0 to disable)\"`" S_SELECT_DISTANCE="`gettext \"Log every n meters (0 to disable)\"`" S_SELECT_SPEED="`gettext \"Log over n km/h (0 to log at any speed)\"`" S_SELECT_FULL="`gettext \"On memory full\"`" S_FULL_STOP="`gettext \"Stop logging\"`" S_FULL_OVERLAP="`gettext \"Overwrite older points\"`" # ****** Script (do not edit below this point) ******************************* # TMPFILE=`mktemp /tmp/gmtkbabel.XXX` trap "rm -rf $TMPFILE; exit" INT TERM EXIT; if TIME=`zenity --scale --title="$S_TITLE" --text="$S_SELECT_TIME" \ --min-value=0 --max-value=999 --value=1 --step 1` && \ DISTANCE=`zenity --scale --title="$S_TITLE" --text="$S_SELECT_DISTANCE" \ --min-value=0 --max-value=9999 --value=0 --step 10` && \ SPEED=`zenity --scale --title="$S_TITLE" --text="$S_SELECT_SPEED" \ --min-value=0 --max-value=999 --value=0 --step 10` && \ FULL=`zenity --list --title="$S_TITLE" --text="$S_SELECT_FULL" \ --column "" --column "" \ "stop" "$S_FULL_STOP" \ "overlap" "$S_FULL_OVERLAP"` then mtkbabel -p $PORT -r $TIME:$DISTANCE:$SPEED -m $FULL -l on \ >$TMPFILE 2>&1 cat $TMPFILE | zenity --text-info fi