fabricebrito / ambit2gpx

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

Ambit2gpx stopped working with latest Suunto Update #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In August 2014, Suunto forced an update to their software and the output is now 
in a file called .sml instead of .xml  Ambit2gpx no longer outputs anything 
meaningful even if the new file is renamed as .xml.  Attached are 3 files:
1. A track in Pre-August format .xml which processes fine on ambit2gpx. 
2. The exact same track in Updated format .sml which does not process on 
ambit2gpx.
3. A copy of the ambit2gpx .gpx output when processing the .sml format.  Note, 
regardless of input .sml file size, all output gpx files are 571 bytes long.

If one compares the .sml and the .xml files one can see that there are header 
differences ... and probably some data differences as well.  

Can we have an updated ambit2gpx ???  1.7 ???

Thanks, 
Doug 

djhome.net@gmail.com 

Original issue reported on code.google.com by djhome....@gmail.com on 20 Aug 2014 at 5:43

Attachments:

GoogleCodeExporter commented 8 years ago
Try the attached patch for the script.  I've run the modified script on your 
file and one of mine and the resulting GPX files validate and mined look right.

Original comment by mr.greg...@gmail.com on 23 Aug 2014 at 9:47

Attachments:

GoogleCodeExporter commented 8 years ago
I've cloned and patched at 
http://code.google.com/r/mrgregson-ambit2gpx/source/list?name=feature%2Fmoveslin
k-1.2.8 I updated the patch so both XML and SML formats can be converted.

Original comment by mr.greg...@gmail.com on 23 Aug 2014 at 11:09

GoogleCodeExporter commented 8 years ago
Works GREAT with both xml and sml.   THANKS

I enjoyed seeing the changes you made and was gratified that I could provide
appropriate files to enable you to pinpoint the changes made by Suunto.
Good thinking on your part to test for file type xml vs sml.

When I come back from multi day trip, I often have a bunch of xml/sml files
I want to convert.  So I wrote a batch script to process them sequentially.
I had to change that also to accommodate xml vs sml.  Below is copy of
script fyi...  Runs on windows 8.1

Doug

----------------              ----------------------
--------------------

REM navigate to where Suunto Directory
CD C:\users\drj\AppData\Roaming\Suunto\
REM move all the log xml or sml files to a working directory
move Moveslink2\*.?ml inproc
REM run the converter program on the files in the inproc directory
for %%i in ("inproc\*.?ml") do ambit2gpx.py "%%i"
REM move the converted files from inproc to gpx or archive
move inproc\*.gpx gpx
REM move the original files from inproc to archive xml.
move inproc\*.?ml archive
echo ":-)"
explorer.exe c:\users\drj\appdata\roaming\suunto\gpx

Original comment by djhome....@gmail.com on 23 Aug 2014 at 4:17

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Issue 8 has been merged into this issue.

Original comment by jconr...@gmail.com on 21 Dec 2014 at 10:28

GoogleCodeExporter commented 8 years ago
Problem reproduced in-house

Original comment by jconr...@gmail.com on 21 Dec 2014 at 10:34

GoogleCodeExporter commented 8 years ago

Original comment by jconr...@gmail.com on 21 Dec 2014 at 10:35

GoogleCodeExporter commented 8 years ago
Handle now new sml format. As the upgrade is 4 months old now, I did not try to 
deal with both old xml format and new sml format. Current version of script is 
dealing with new sml format only, I'm assuming this is fine and enough this way.

Original comment by jconr...@gmail.com on 21 Dec 2014 at 10:37