DLD Changes

Miika Turkia miika.turkia at gmail.com
Sun Oct 12 12:38:44 PDT 2014

On Sun, Oct 12, 2014 at 10:17 PM, Rainer Mohr <mail at divelogs.de> wrote:

>  Hi Miika,
> Am 12.10.14 20:52, schrieb Miika Turkia:
>  What is the status of picture support on the API? IIRC you mentioned
> that you are working on it, but I don't think it existed the last time I
> checked.
> I have implemented this on the export page to try it out.
> https://en.divelogs.de/DLDexport.php*?alldata=true* (if signed in) will
> give you an "extended" DLD containing your certifications, documents,
> Pictures, video-urls, etc. The XML files point to the files included in the
> zip, so it should be parseable. My main concern is the size and the
> performance. I just exported mine and it results in a 480MB DLD-file
> containing over 2000 pictures.... That not only takes a while to put
> together, but also consumes a lot of ressources. I have no problem to build
> it in to the API, as most logs don't contain that much data, but it might
> be a bit slowish for those who put everything they see on their SD card
> (like me :) ), so timeouts could occur.

I get no data with the alldata parameter.

> Please just add a picture or two on your subsurface test account and
> export the file via the url above. If you say you could work with that,
> I'll implement that. Same goes for other direction, if you can put together
> the DLD file with the pictures like that...
>   The import to Subsurface is now implemented. The export is a bit more
> "interesting" as we do not have concept of main tank. I think to just use
> the first in the XML as the main cylinder and the others as additional.
> Does this make sense?
> Damn, you're fast :-)

It was perfect timing, I just had finished upgrading my NAS when your mail

> Yes, the first tank as the main cylinder is perfect, it doesn't really
> matter for any SAC calculations, as all tanks are taken into account. The
> only difference it makes, is that the first "tab" on the dive page is your
> main tank and is not deleteable and the others are the additional tanks. So
> just take the first as the main tank...

As Dirk pointed out the main cylinder is the one with a gas change event
during the first minute. Otherwise it is the first one. (I already had that
logic in the conversion, but just didn't remember.)

BTW the additional tanks are not translated on your web page.

> Let my know how to proceed with the API...

I have not started to use the picture stuff on Subsurface, at least not
yet, so I am wrong person to give any comment on this issue. Does anyone
else have opinion on this? Would it be useful to have picture support on
the import/export?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141012/0d7adf20/attachment-0001.html>

More information about the subsurface mailing list