Talk:TangoGPS

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(navicache poi import)
(How do I set the map on the command line with SHR?)
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
==subproject==
 
==subproject==
 
===navicache poi import===
 
===navicache poi import===
(geocaching)
+
(geocaching) work in progress HELPHELPHELP  <B> kd8ikt@fuse.net </b>
  
import navicache.com geocache waypoints via gpx (xml) into tangogps's ~/.tangogps/poi.db (sqlitedb)
+
import navicache.com geocache waypoints via their downloadable gpx (xml) into tangogps's ~/.tangogps/poi.db (sqlitedb)
  
  
example navicache.com gpx file
+
<B>example navicache.com gpx file </B>
 
<PRE>
 
<PRE>
 
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
 
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
Line 69: Line 69:
  
  
poi.db format/schema?
+
<B>poi.db format/schema? </B>
  
 +
example poi.db with one poi entry<br>
 +
http://we.trekbeyond.org/~kd8ikt/moko/poi.db    tangogps raw sqlite poi.db
 +
<br><br><B>CSV dump</b>
 
<PRE>
 
<PRE>
i exported the poi.db tangogps created with my example poi in sql txt file format
 
  
$cat poi.db.sql.txt
+
kd8ikt@kd8ikt:~/mokoloco$ cat poidb.cvs
BEGIN TRANSACTION;
+
"idmd5","lat","lon","visibility","cat","subcat","keywords","desc","price_range","extended_open","creator","bookmarked","user_rating","rating","user_comment"
CREATE TABLE poi ( idmd5 TEXT, lat REAL, lon REAL, visibility REAL, cat REAL, subcat REAL, keywords TEXT, desc TEXT, price_range REAL, extended_open REAL, creator TEXT, bookmarked REAL, user_rating REAL, rating REAL, user_comment TEXT);
+
"109496141722186324","39.283409","-84.317535","0.0","14.0","0.0","home","home duh","3.0","0.0","","","","",""
INSERT INTO poi VALUES(109496141722186324,39.283409,-84.317535,0.0,14.0,0.0,'home','home duh',3.0,0.0,NULL,NULL,NULL,NULL,NULL);
+
 
COMMIT;
+
 
</PRE>
 
</PRE>
 +
 +
 +
<B>conclusion </B><br>
 +
i'm looking into python for importing/parsing the lat lon name and desc  inside each waypoint heading then export those into the tangogps sqlite poi.db
 +
 +
<B><BR>GPSBABEL?</B>
 +
 +
 +
 +
<br><br>
 +
<B>Progress</b><br>
 +
<PRE>
 +
 +
#!/usr/bin/env python
 +
#
 +
#  NaviCacheGPX2TangogpsPOIdb.py
 +
#
 +
#  licensing stuff yada yada
 +
#
 +
#kd8ikt
 +
 +
import sys
 +
 +
from xml.dom import minidom
 +
xmldoc = minidom.parse('gpx.gpx') #ugh wrong its hardcoded
 +
 +
if len(sys.argv) <3:
 +
  print "usage:"
 +
  print "INCOMPLETE"
 +
  print "NaviCacheGPX2TangogpsPOIdb.py poi.db navicache.gpx"
 +
  sys.exit(1)
 +
 +
</PRE>
 +
 +
 +
== batch processing tracklogs ==
 +
is there anyway to batch process a folder with convert2gpx? manually running it on 40 some odd traces is a pain.--[[User:Jerjozwik|Jerjozwik]] 20:23, 2 May 2009 (UTC)
 +
 +
<pre>
 +
for file in *.log; do convert2gpx $file > `basename $file .log`.gpx; done
 +
</pre>
 +
--[[User:Blat|blat]] 06:18, 4 May 2009 (UTC)
 +
amazing, thank you blat--[[User:Jerjozwik|Jerjozwik]] 05:11, 13 May 2009 (UTC)
 +
 +
== gps update timer ==
 +
is there any way to adjust the gps track timer for tangoGPS? i ask because while driving or moving in an object with a high velocity the gps track data is very clean. when walking or biking the data can be very noisy even in an open area. so my thinking is by having a switch / command something that i could enable when im walking i could then use that data.--[[User:Jerjozwik|Jerjozwik]] 15:48, 17 May 2009 (UTC)
 +
 +
== How do I set the map on the command line with SHR? ==
 +
I just tried to change the directory for the storage of the Maps from main memory to the SD card. Since TangoGPS crashed using the GUI, I tried it the command line way described on the wiki. There were some error message: "Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged". The change did work though -- until I did a opkg upgrade. After the system seemed to be broken. For example: Trying to access the power configuration on the GUI I got the error message "Couldn't connect to FSO" and "Coundln't connect to FSO or ophonekitd". Well, I guess I will have to reflash again... [[User:Thisss|Thisss]] 21:09, 03 August 2009

Latest revision as of 20:10, 3 August 2009

Contents

[edit] subproject

[edit] navicache poi import

(geocaching) work in progress HELPHELPHELP kd8ikt@fuse.net

import navicache.com geocache waypoints via their downloadable gpx (xml) into tangogps's ~/.tangogps/poi.db (sqlitedb)


example navicache.com gpx file

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>

<gpx

   version="1.0"

   creator="NaviCache Cache Download 1.0.0 - http://www.navicache.com"

   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

   xmlns="http://www.topografix.com/GPX/1/0"

   xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd ">

      <name>acountnames's GPX download</name>

      <author>NaviCache.com</author>

      <email>support@navicache.com</email>

      <url>http://www.navicache.com</url>

      <urlname>NaviCache</urlname>

      <time>2009-02-06T21:35:30Z</time>

      <wpt lat="39.3173666666667" lon="-84.54635">

         <name>N00BD5</name>

         <desc>A Chip Off the Old Block by Web_ling</desc>

         <url>http://www.navicache.com/cgi-bin/db/displaycache2.pl?CacheID=3029</url>

         <urlname>Cache Details</urlname>

         <sym>Default</sym>

         <type>Geocache</type>

      </wpt>

      <wpt lat="39.32035" lon="-84.5737333333333">

         <name>N0114D</name>

         <desc>Cache Hopper by Web_ling</desc>

         <url>http://www.navicache.com/cgi-bin/db/displaycache2.pl?CacheID=4429</url>

         <urlname>Cache Details</urlname>

         <sym>Default</sym>

         <type>Geocache</type>

      </wpt>


poi.db format/schema?

example poi.db with one poi entry
http://we.trekbeyond.org/~kd8ikt/moko/poi.db tangogps raw sqlite poi.db

CSV dump


kd8ikt@kd8ikt:~/mokoloco$ cat poidb.cvs 
"idmd5","lat","lon","visibility","cat","subcat","keywords","desc","price_range","extended_open","creator","bookmarked","user_rating","rating","user_comment"
"109496141722186324","39.283409","-84.317535","0.0","14.0","0.0","home","home duh","3.0","0.0","","","","",""


conclusion
i'm looking into python for importing/parsing the lat lon name and desc inside each waypoint heading then export those into the tangogps sqlite poi.db


GPSBABEL?




Progress


#!/usr/bin/env python
#
#  NaviCacheGPX2TangogpsPOIdb.py 
#
#  licensing stuff yada yada
#
#kd8ikt

import sys

from xml.dom import minidom
xmldoc = minidom.parse('gpx.gpx') #ugh wrong its hardcoded 

if len(sys.argv) <3:
  print "usage:"
  print "INCOMPLETE"
  print "NaviCacheGPX2TangogpsPOIdb.py poi.db navicache.gpx"
  sys.exit(1)


[edit] batch processing tracklogs

is there anyway to batch process a folder with convert2gpx? manually running it on 40 some odd traces is a pain.--Jerjozwik 20:23, 2 May 2009 (UTC)

for file in *.log; do convert2gpx $file > `basename $file .log`.gpx; done

--blat 06:18, 4 May 2009 (UTC) amazing, thank you blat--Jerjozwik 05:11, 13 May 2009 (UTC)

[edit] gps update timer

is there any way to adjust the gps track timer for tangoGPS? i ask because while driving or moving in an object with a high velocity the gps track data is very clean. when walking or biking the data can be very noisy even in an open area. so my thinking is by having a switch / command something that i could enable when im walking i could then use that data.--Jerjozwik 15:48, 17 May 2009 (UTC)

[edit] How do I set the map on the command line with SHR?

I just tried to change the directory for the storage of the Maps from main memory to the SD card. Since TangoGPS crashed using the GUI, I tried it the command line way described on the wiki. There were some error message: "Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged". The change did work though -- until I did a opkg upgrade. After the system seemed to be broken. For example: Trying to access the power configuration on the GUI I got the error message "Couldn't connect to FSO" and "Coundln't connect to FSO or ophonekitd". Well, I guess I will have to reflash again... Thisss 21:09, 03 August 2009

Personal tools

subproject

navicache poi import

(geocaching)

import navicache.com geocache waypoints via gpx (xml) into tangogps's ~/.tangogps/poi.db (sqlitedb)


example navicache.com gpx file

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>

<gpx

   version="1.0"

   creator="NaviCache Cache Download 1.0.0 - http://www.navicache.com"

   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

   xmlns="http://www.topografix.com/GPX/1/0"

   xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd ">

      <name>acountnames's GPX download</name>

      <author>NaviCache.com</author>

      <email>support@navicache.com</email>

      <url>http://www.navicache.com</url>

      <urlname>NaviCache</urlname>

      <time>2009-02-06T21:35:30Z</time>

      <wpt lat="39.3173666666667" lon="-84.54635">

         <name>N00BD5</name>

         <desc>A Chip Off the Old Block by Web_ling</desc>

         <url>http://www.navicache.com/cgi-bin/db/displaycache2.pl?CacheID=3029</url>

         <urlname>Cache Details</urlname>

         <sym>Default</sym>

         <type>Geocache</type>

      </wpt>

      <wpt lat="39.32035" lon="-84.5737333333333">

         <name>N0114D</name>

         <desc>Cache Hopper by Web_ling</desc>

         <url>http://www.navicache.com/cgi-bin/db/displaycache2.pl?CacheID=4429</url>

         <urlname>Cache Details</urlname>

         <sym>Default</sym>

         <type>Geocache</type>

      </wpt>


poi.db format/schema?

i exported the poi.db tangogps created with my example poi in sql txt file format

$cat poi.db.sql.txt 
BEGIN TRANSACTION;
CREATE TABLE poi (			idmd5 TEXT, lat REAL, lon REAL, visibility REAL, cat REAL, subcat REAL, 		keywords TEXT, desc TEXT, price_range REAL, extended_open REAL,			creator TEXT, bookmarked REAL, user_rating REAL, rating REAL, user_comment TEXT);
INSERT INTO poi VALUES(109496141722186324,39.283409,-84.317535,0.0,14.0,0.0,'home','home duh',3.0,0.0,NULL,NULL,NULL,NULL,NULL);
COMMIT;