[PATCH] Import Datatrak/WLog files

2014-10-26 Thread Salvador Cuñat
Sequentially parses a file, expected to be a Datatrak/WLog divelog, and converts the dive info into Subsurface's dive structure. As my first DC, back in 90s, was an Aladin Air X, the obvious choice of log software was DTrak (Win version). After using it for some time we moved to WLog (shareware so

Re: [PATCH] Import Datatrak/WLog files

2014-10-26 Thread Dirk Hohndel
Hi Salvador, thanks for pointing out the mailing list issue. Since you had me copied directly on this email, I was even less concerned and checked only briefly. Oops again. On Sun, Oct 26, 2014 at 09:23:19PM +0100, Salvador Cuñat wrote: > Sequentially parses a file, expected to be a Datatrak/WLo

Re: [PATCH] Import Datatrak/WLog files

2014-10-31 Thread Salvador Cuñat
nk). > > + if (tmp_2bytes != 0x7fff) { > > + dt_dive->watertemp.mkelvin = dt_dive->dc.watertemp.mkelvin > = C_to_mkelvin((double)(tmp_2bytes/100)); > > + } else { > > + dt_dive->watertemp.mkelvin = 0; > > + } > >

Re: [PATCH] Import Datatrak/WLog files

2014-11-02 Thread Pedro Neves
Salvador: On 10/31/2014 06:34 PM, Salvador Cuñat wrote: Have you found others who have old divelogs from this software? I still have a few divelogs from Aladin and from different dive computers (Aladin Pro, Aladin Pro Nitrox). Do you want me to send them to you? Regards: Pedro Neves

Re: [PATCH] Import Datatrak/WLog files

2014-11-02 Thread Davide DB
I have a huge datatrak log file. Do you need it? davide@mobile Il 02/nov/2014 13:42 "Pedro Neves" ha scritto: > Salvador: > > On 10/31/2014 06:34 PM, Salvador Cuñat wrote: > >> >> Have you found others who have old divelogs from this software? > > > > I still have a few divelogs from Aladin an

Re: [PATCH] Import Datatrak/WLog files

2014-11-02 Thread Salvador Cuñat
Thanks Pedro and Davide. Some dives will be welcome, specially those involving Nitrox and O2 models, and more dives involving heavy decos, as all my dives had been on air with Air X/Z, and the dives in Example.log are very limited (only 1 for Nitrox model and all O2 dives on SCR). The parser s

Re: [PATCH] Import Datatrak/WLog files

2014-11-02 Thread Salvador Cuñat
Hi Davide. Smarttrak .slg is my next objective, once datatrak is finished. I'll need the file, for sure. If you don't mind, I will ask for it to you once I take on the problem. First I have to study the mdb library to interact with the Jet database. Thank you very much. P.D. I think I've seen

Re: [PATCH] Import Datatrak/WLog files

2014-11-02 Thread Davide DB
On Mon, Nov 3, 2014 at 12:55 AM, Salvador Cuñat wrote: > Hi Davide. > > Smarttrak .slg is my next objective, once datatrak is finished. > I'll need the file, for sure. If you don't mind, I will ask for it to you > once I take on the problem. First I have to study the mdb library to > interact wi

Re: [PATCH] Import Datatrak/WLog files

2014-11-03 Thread Salvador Cuñat
El 03/11/2014 09:02, "Pedro Neves" escribió: > > Hi Salva: > > Thanks for the logs. Nice work. > Hi Pedro. Thanks for your feedback. Although I told you can use that logs, it should be preferable to wait to the pushed version in next release, as all the new tags should be translated. Regards.

Re: [PATCH] Import Datatrak/WLog files

2014-11-05 Thread Salvador Cuñat
o > the pushed version in next release, as all the new tags should be > translated. > > Regards. > > Salva. > From 342aa5c2114da9e23d5061ad93424b582208b7dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Salvador=20Cu=C3=B1at?= Date: Wed, 5 Nov 2014 19:38:27 +0100 Subject: [PATCH] Imp

Re: [PATCH] Import Datatrak/WLog files

2015-03-10 Thread Dirk Hohndel
On Wed, Nov 05, 2014 at 07:50:15PM +0100, Salvador Cuñat wrote: > Hi Dirk. > > May be you missed the previous patch. And now, five months later, it seems I still never applied it. Any idea why? /D ___ subsurface mailing list subsurface@subsurface-di

Re: [PATCH] Import Datatrak/WLog files

2015-03-10 Thread Pedro Neves
On 03/10/2015 07:36 PM, Salvador Cuñat wrote: As commented some time (months :-) ) ago, I have a quite functional parser for SmartTrak files. Do you still have access to your friend's divelog? It would be great to test it, as all my dives in smarttrak are imported and I only have the exampl

Re: [PATCH] Import Datatrak/WLog files

2015-03-10 Thread Davide DB
On Tue, Mar 10, 2015 at 8:36 PM, Salvador Cuñat wrote: > As commented some time (months :-) ) ago, I have a quite functional parser > for SmartTrak files. > Do you still have access to your friend's divelog? It would be great to > test it, as all my dives in smarttrak are imported and I only hav

Re: [PATCH] Import Datatrak/WLog files

2015-03-10 Thread Dirk Hohndel
Salva, On Tue, Mar 10, 2015 at 08:26:32PM +0100, Salvador Cuñat wrote: > > > > And now, five months later, it seems I still never applied it. > > > > Any idea why? > > > > /D > > > I don't know. I thought you didn't like that hackish code pages related > thing (I recon I dislike very much). I'm

Re: [PATCH] Import Datatrak/WLog files

2015-03-10 Thread Salvador Cuñat
2015-03-10 22:25 GMT+01:00 Dirk Hohndel : > I cleaned it up a tiny bit but left it mostly unchanged... and > pushed it so I wouldn't forget again :-) > Hmmm. There was a little more work to do involving some recent changes like divemode. But I can't take a look until tomorrow evening. > So

Re: [PATCH] Import Datatrak/WLog files

2015-03-11 Thread Davide DB
On Wed, Mar 11, 2015 at 1:18 AM, Salvador Cuñat wrote: >> I'm wondering, would it be possible / easier to have a standalone >> converter? How common are these files? How many users will come to >> Subsurface and need support for this? >> > Possible, sure. Easier not so sure, my actual workaround

Re: [PATCH] Import Datatrak/WLog files

2015-03-12 Thread Salvador Cuñat
Hi Dirk. 2015-03-10 15:25 GMT+01:00 Dirk Hohndel : > > And now, five months later, it seems I still never applied it. > > Any idea why? > > /D > > I don't know. I thought you didn't like that hackish code pages related thing (I recon I dislike very much). Don't worry, if you think it may be in

Re: [PATCH] Import Datatrak/WLog files

2015-03-12 Thread Salvador Cuñat
Good night Davide 2014-11-03 8:53 GMT+01:00 Davide DB : > On Mon, Nov 3, 2014 at 12:55 AM, Salvador Cuñat > wrote: > >> Hi Davide. >> >> Smarttrak .slg is my next objective, once datatrak is finished. >> I'll need the file, for sure. If you don't mind, I will ask for it to you >> once I take on