Open bestis opened 1 year ago
That SDE file within dive-logs.zip is empty and doesn't contain any dive log files. So, the SdeToFit program is working as designed. When you used the Suunto Dive Manager export feature are you certain that you had at least one dive selected? I was using an older version of SDM since that's what came with the D3. In the one I have you have to select the dives once, then select the menu File → Export command, then select the dives a second time.
I exported all the files with similar way. I retried, all I am able to get is 26 bytes files from the DM5. So maybe then the SDE export is broken. I also tried other dives. Same results, 26 bytes SDE:s. Other exports seems to work.
Same result is happening exporting via File -> Export -> Selected dive.
All they contain is just the start header for PKZIP.
$ hexdump Dive_2023-01-23-0953.sde
0000000 4b50 0403 0014 0000 0008 ba4b 563b 0000
0000010 0000 ffff ffff ffff ffff
000001a
So question still kind of is, is the SML file the same as SDE without compression?
Well, apparently not. At least if one renamed the .sml to 0.xml and created a zip out of it and tried to convert that.
java.exe -cp fit.jar;SdeToFit-1.0-SNAPSHOT.jar com.github.nradov.sdetofit.SdeToFit test.sde Downloads
Converting dive log: "0.xml"
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "org.w3c.dom.Node.getTextContent()" because the return value of "org.w3c.dom.NodeList.item(int)" is null
at com.github.nradov.sdetofit.suunto.SuuntoXml.<init>(SuuntoXml.java:59)
at com.github.nradov.sdetofit.suunto.SuuntoSde.<init>(SuuntoSde.java:46)
at com.github.nradov.sdetofit.DivesSourceFactory.create(DivesSourceFactory.java:55)
at com.github.nradov.sdetofit.SdeToFit.convert(SdeToFit.java:72)
at com.github.nradov.sdetofit.SdeToFit.main(SdeToFit.java:68)
Will need to think do I have time/energy to look at the code, what would be needed to have SML support, as clearly the SDE is not an option as my DM5 can't export it.
Can you post the .sml file here?
Examples are in the first post's zip file. Link to it: https://github.com/nradov/SdeToFit/files/10483182/dive-logs.zip
Hi,
Seems that it's not standard zip. Unzip wont like it either.
It can export SML, which is probably Suunto XML, would hope same same without compression?
But there's the three options that I can export from DM5, would be nice if some of them would be supported to convert to as FIT.
dive-logs.zip