Skip to content

DM5 SME export does not work #1

Description

@bestis

Hi,

Seems that it's not standard zip. Unzip wont like it either.

C:\Users\jo\Downloads>java.exe -cp fit.jar;SdeToFit-1.0-SNAPSHOT.jar com.github.nradov.sdetofit.SdeToFit Dive_2023-01-23-0953.sde C:\Users\jo\Downloads
Exception in thread "main" java.util.zip.ZipException: zip END header not found
        at java.base/java.util.zip.ZipFile$Source.findEND(Unknown Source)
        at java.base/java.util.zip.ZipFile$Source.initCEN(Unknown Source)
        at java.base/java.util.zip.ZipFile$Source.<init>(Unknown Source)
        at java.base/java.util.zip.ZipFile$Source.get(Unknown Source)
        at java.base/java.util.zip.ZipFile$CleanableResource.<init>(Unknown Source)
        at java.base/java.util.zip.ZipFile.<init>(Unknown Source)
        at java.base/java.util.zip.ZipFile.<init>(Unknown Source)
        at java.base/java.util.zip.ZipFile.<init>(Unknown Source)
        at com.github.nradov.sdetofit.suunto.SuuntoSde.<init>(SuuntoSde.java:41)
        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)

$ unzip -v Dive_2023-01-23-0953.sde
Archive:  Dive_2023-01-23-0953.sde
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
note:  Dive_2023-01-23-0953.sde may be a plain executable, not an archive
unzip:  cannot find zipfile directory in one of Dive_2023-01-23-0953.sde or
        Dive_2023-01-23-0953.sde.zip, and cannot find Dive_2023-01-23-0953.sde.ZIP, period.

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions