On Tue, May 3, 2016 at 6:10 PM, Goose_66 <
regist...@sardone.org> wrote:
>
> On Tuesday, May 3, 2016 at 6:58:15 AM UTC+2, Miika Turkia wrote:
>>
>> Can you also provide me original logs? However, if there is no
>
>
> I am attaching a .apd file.
> These files are obtained according to subsurface manual:
> opening the .ccl file (it is a bynary file format proprietary and
> undisclused) in APD Log Viewer (windown only application)
> copying the data to clipboard
> pasting this data in textwrangler
> saving the resulting text file with .apd extension
>
>>
>> date/time stamps on the logs, there isn't much we can do. The time
>> that is used (if timestamps are not available on the logs) is the
>> import time (or possibly minus one hour or similar adjustment).
>
>
> The dive timestamp is in the filename (the .ccl filename) than can be used
> as .apd filename (as I did).
> My suggestion (if I am allowed to make one ...;-) ) would be twofolds:
Suggestions are always welcome, but we reserve the right not to
implement them any time soon (or ever), or to wait for patches from
the suggester :D
> a) parse the apd filename (format is nncnnnnnn_yymmdd_hhmmss.apd) if it
> match this format use it.
I just implemented this. The pattern matching is now quite strict and
requires the above format exactly with some leeway with the serial
number part.
> b) change the import dialog to allow setting date and time for the dive
> (using the data obtained from above parsing or presetting it with file
> creation time with a warning of invalid dive date/time for user to adjust)
This is not as easy as we support importing multiple files on a single
go and your suggestion does not work in this case. However, having a
similar dialog after the import as we have on download from DC might
make sense. Thus user could validate the information we got out, and
possibly even fix the dates/times at that phase. At least I think this
idea deserves some more thought. (Too bad, GUI coding is not among my
strengths.)
> for those wondering the nncnnnnnn initial part of the file name is the
> machine serial 2 digit for construction year, one letter for construction
> month 6 digit serial number.
I wonder if this should also be imported...A bit more code here and
there, but should not be too hard to add.
> One last thing, working with this issue I found out a bug in OSTC 2n which
> did non compute 2016 as leap year (so the initial import were one day off
> ahead) and I forgot t set daylight saving time (dives logged one hour
> earlier than real), this not withstanding the dives did not merge upon
> import when data il the log had been corrected before importing the APD file
> or after changing the APD imported dive to the same date/time of the
> pre-existing dive.
Luckily my OSTC Sport ran out of battery and I had to set the date and
time before dipping in a few weeks ago.