Page 2 of 3

Re: Sync Problems with Diving Log

Posted: Tue Mar 13, 2012 7:04 am
by nick
As I said above, tanks are not synced back to MacDive. Currently Dive Log does not support multiple tanks, therefore the information is skipped for now. I will fix this all up once Dive Log does have support for multiple tanks.

Re: Sync Problems with Diving Log

Posted: Tue Mar 13, 2012 7:11 am
by nick
Actually, if I have some time, I'll try and get something temporary hacked in to just assume it means the first tank in MacDive or some such.

Re: Sync Problems with Diving Log

Posted: Tue Mar 13, 2012 1:52 pm
by nick
Ok. There's a new beta up (usual link).

This sets doubles, and also the tank type correctly. But still only going *back* to Dive Log. MacDive will still skip reading any info in. Does this help for the meantime?

Re: Sync Problems with Diving Log

Posted: Tue Mar 13, 2012 3:53 pm
by Benthic
It sure does.

That's great! Thanks.

Benthic

Re: Sync Problems with Diving Log

Posted: Wed Mar 14, 2012 3:28 am
by Keith
Personally something I think MacDive should not do is remove information that a user has input into Dive Log. That is especially true when previous versions of the program have synced the information properly. Nick I'll email you about it.

Re: Sync Problems with Diving Log

Posted: Wed Mar 14, 2012 4:59 pm
by nick
Benthic wrote:It sure does.

That's great! Thanks.

Benthic
Benthic,

I have put up a new beta. This will sync tanks back from Dive Log, too. It's not perfect - it was a hectic day at the real job, so I only had a few hours to spend on it this evening, but I wanted to get something up. Please give it a shot and let me know if it helps.

Re: Sync Problems with Diving Log

Posted: Wed Mar 14, 2012 7:31 pm
by Benthic
Hi Nick,

Thanks for the late hours you're spending on this!

I created some tanks and stuff in Dive Log. The tank capacity, twin cylinder checkbox, start and end pressures and tank type sync to MacDive OK.

It creates new tanks and gases rather than matching pre-existing ones - and the tank duration is 00:00. But I guess those things are best left for multi-tank support in Dive Log. I agree with Keith, the important thing is that data entered in Dive Log is not lost.

However, testing uncovered a bug going in the other direction. If you have multiple tanks on a dive in MacDive, then after a sync Dive Log will show the start pressure of the first tank and the end pressure of the last tank. The next sync preview will highlight the problem but not fix it. If you change the end pressure in Dive Log, it will correctly sync to the end pressure of the first tank in MacDive, but on the same sync Dive Log will revert to the end pressure of the last tank. (You might want to read that sentence again :) )

MacDive never loses or corrupts the correct pressure data.

I can see what a can-of-worms this becomes just for a temporary fix! Hopefully Dive Log will be updated soon.

Cheers,
Benthic

Re: Sync Problems with Diving Log

Posted: Thu Mar 15, 2012 1:56 am
by nick
There is a new beta up that syncs the start/end pressure of the first tank now. Sorry about that, it was just using the overall air start/end.

In some cases yeah, it will create a new tank. It will use an existing one if it finds a match, but there are some other issues at play that may be causing a match to fail. For now I figured it was better to at least just make a tank.

I'll double check the duration after work tonight. In some cases it is definitely used. What is the situation you are seeing where it's not? (i.e., a dive in Dive Log with a tank and no tank in MacDive) ?

Re: Sync Problems with Diving Log

Posted: Thu Mar 15, 2012 10:51 am
by Benthic
I was creating a new dive in Dive Log and syncing it to MacDive.

Re: Sync Problems with Diving Log

Posted: Thu Mar 15, 2012 2:03 pm
by nick
Ok, there's a new beta up that will set the duration when you're copying new dives over.

This will still not be quite correct in some cases, I should probably add some extra checks in case the Dive Log data has a new duration and set the tank to that. But I'll get to that in the next day or two. For now at least, it should help a little.