montant / ambit2gpx

Automatically exported from code.google.com/p/ambit2gpx
12 stars 3 forks source link

Indoor sport conversion fails. #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Record an indoor sport + HR data with Ambit
(Sisäharjoittelu in finnish)
2. Run the script.

What is the expected output? What do you see instead?
Larger file. Result file is 1kb:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

<gpx 
xmlns="http://www.topografix.com/GPX/1/1"
xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" 
creator="ambit2gpx" version="1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.topografix.com/GPX/1/1 
http://www.topografix.com/GPX/1/1/gpx.xsd">
 <metadata>
    <link href="http://code.google.com/p/ambit2gpx/">
      <text>Ambit2GPX</text>
    </link>
   </metadata>
  <trk>
    <trkseg>  

    </trkseg>        
  </trk>
</gpx>

What version of the product are you using? On what operating system?
Version: ambit2gpx-1.5.py, Python 2.7.4, Windows 7 64-bit.

Please provide any additional information below.
Tried with different parameters, same result.
Attaching the Ambit xml file.

Original issue reported on code.google.com by hannu.ko...@gmail.com on 21 May 2013 at 7:59

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

I don't see what could be the contents of a gpx file generated from the example 
file
of indoor activity attached: even if gpx file can record series of data such as 
HR, it is first based on location data, distance, etc and the example file, 
there is no location data available, and distance remains to 0 from beginning 
to end.

What could be the contents of generated gpx file in such a case, when there is 
nothing to generate a track from inside the input xml file?

Regards

Original comment by jconr...@gmail.com on 22 May 2013 at 8:57

GoogleCodeExporter commented 8 years ago
I see, didn't realize .gpx to be so tied to location data.
Maybe could try to inject some bogus distance data then when Ambit GPS is 
turned off to make .gpx legit for sports-tracker?

Maybe the distance data is just filtered out in the ST UI or something in case 
of indoor sport.(I have not recorded an indoor sport on ST before) I see that 
the GPS is turned on when i start an indoor sport on ST, so it would seem that 
the issue is here that Ambit can do indoor sport without gps and the gps data 
is left out from the xml.

Original comment by hannu.ko...@gmail.com on 23 May 2013 at 7:38

GoogleCodeExporter commented 8 years ago
Ok, Took a shot at it, adding some gps data (and the time needed some tweaks 
too). Might need some testing, not sure if i broke something, haven't really 
played around with python.
Need to install dateutils module for the datetime handlings.
(Just have to remember to set the distance to zero in the sports-tracker import 
window)
Added reference image from both ST and movescount, and updated script.

Original comment by hannu.ko...@gmail.com on 23 May 2013 at 1:18

Attachments: