Problems importing from old Mac DiveLog

Problems ? Get help here!
Post Reply
resnick
Posts: 5
Joined: Thu Nov 27, 2014 4:38 am
Dive Computer: Shearwater NERD 2
Location: Urbana, IL US
Contact:

Problems importing from old Mac DiveLog

Post by resnick »

I'm having a few problems importing from the old Mac DiveLog. I used the "DiveLog (.xml)" format for the import, but there are some things that are not coming through correctly. I'm glad to help debug, including sending in the old data file, and I'm happy to do some hand-editing of the old .xml file if I need to before importing if that's needed. I'm still at the stage that blowing away my database and starting over is just fine, so no worries there. Here's the list of issues so far:
  1. Surface Interval is not coming through correctly. As far as I can tell, Mac DiveLog keeps the value in minutes, and MacDive is interpreting it as seconds. Do I need to go through and multiply everything by 60?
  2. Mac DiveLog has no concept of "Country"; there's "Location" and "Site", but I've been tacking the country onto the end of the location. When I went to import it, I get "Unknown Country" for everything. If I put a Country="XYZ" into each entry in the old log and then import, will MacDive pick that up correctly? Is there some way to fix this after import? Suggestions welcome.
  3. Temperature and pressure profile data does not seem to be imported. When I look at the Raw tab, all of the pressures are "0" and all of the temps are "32".
  4. Gear is not importing very well. I don't get any of the purchase info, it doesn't get the Manufacturer, etc., though it does seem to get serial numbers just fine.
  5. Some of the dives I'm reading in from the old .xml log are still on my computer (a D9). After I imported the Mac DiveLog data, I downloaded from the computer, but ended up with duplicate dives. I'd like to be able to merge those dives, but when I tried using "Join" I got some really funky data. That could be because of some of the above, but I'm wondering what is the correct order to do things.
Any help you can provide would be welcome.
User avatar
nick
Site Admin
Posts: 4376
Joined: Sat Apr 12, 2008 8:33 am
Dive Computer: Shearwater Teric
Contact:

Re: Problems importing from old Mac DiveLog

Post by nick »

resnick wrote:Surface Interval is not coming through correctly. As far as I can tell, Mac DiveLog keeps the value in minutes, and MacDive is interpreting it as seconds. Do I need to go through and multiply everything by 60?
I will need to confirm that.
[*]Mac DiveLog has no concept of "Country"; there's "Location" and "Site", but I've been tacking the country onto the end of the location. When I went to import it, I get "Unknown Country" for everything. If I put a Country="XYZ" into each entry in the old log and then import, will MacDive pick that up correctly? Is there some way to fix this after import? Suggestions welcome.
Could you not edit the sites after import?

Go to Sites, and you should be able to view them. The list view is probably the easiest, and you can multi-edit them so that you can bulk change the country for groups of sites.

If not, I can look at updating it to include a Country if this is required.
[*]Temperature and pressure profile data does not seem to be imported. When I look at the Raw tab, all of the pressures are "0" and all of the temps are "32".
I will need the data file to investigate this.
[*]Gear is not importing very well. I don't get any of the purchase info, it doesn't get the Manufacturer, etc., though it does seem to get serial numbers just fine.
I will need the data file to investigate this.

[*]Some of the dives I'm reading in from the old .xml log are still on my computer (a D9). After I imported the Mac DiveLog data, I downloaded from the computer, but ended up with duplicate dives. I'd like to be able to merge those dives, but when I tried using "Join" I got some really funky data. That could be because of some of the above, but I'm wondering what is the correct order to do things.[/list]
Join concatenates dives (ie to join two dives with a short surface interval), it does not merge existing dives. There is no way to do this right now sorry.

Please email me your data file and I will investigate your other issues. I am sorry for the inconvenience.

Thanks
MacDive Support
resnick
Posts: 5
Joined: Thu Nov 27, 2014 4:38 am
Dive Computer: Shearwater NERD 2
Location: Urbana, IL US
Contact:

Re: Problems importing from old Mac DiveLog

Post by resnick »

I'll send you my the data file at the support email address. On a couple of specifics:
nick wrote:
resnick wrote:Mac DiveLog has no concept of "Country"; there's "Location" and "Site", but I've been tacking the country onto the end of the location. When I went to import it, I get "Unknown Country" for everything. If I put a Country="XYZ" into each entry in the old log and then import, will MacDive pick that up correctly? Is there some way to fix this after import? Suggestions welcome.
Could you not edit the sites after import?

Go to Sites, and you should be able to view them. The list view is probably the easiest, and you can multi-edit them so that you can bulk change the country for groups of sites.
Ah! That will work.
nick wrote:
resnick wrote:Some of the dives I'm reading in from the old .xml log are still on my computer (a D9). After I imported the Mac DiveLog data, I downloaded from the computer, but ended up with duplicate dives. I'd like to be able to merge those dives, but when I tried using "Join" I got some really funky data. That could be because of some of the above, but I'm wondering what is the correct order to do things.
Join concatenates dives (ie to join two dives with a short surface interval), it does not merge existing dives. There is no way to do this right now sorry.
So the only choice is to delete the duplicates?
User avatar
nick
Site Admin
Posts: 4376
Joined: Sat Apr 12, 2008 8:33 am
Dive Computer: Shearwater Teric
Contact:

Re: Problems importing from old Mac DiveLog

Post by nick »

Yes, sorry. Merging is on my todo list.
resnick
Posts: 5
Joined: Thu Nov 27, 2014 4:38 am
Dive Computer: Shearwater NERD 2
Location: Urbana, IL US
Contact:

Re: Problems importing from old Mac DiveLog

Post by resnick »

resnick wrote:Surface Interval is not coming through correctly. As far as I can tell, Mac DiveLog keeps the value in minutes, and MacDive is interpreting it as seconds. Do I need to go through and multiply everything by 60?
Looks like this one is a DiveLog bug. It is downloading the value as seconds instead of minutes. I'll hand fix that one.
User avatar
nick
Site Admin
Posts: 4376
Joined: Sat Apr 12, 2008 8:33 am
Dive Computer: Shearwater Teric
Contact:

Re: Problems importing from old Mac DiveLog

Post by nick »

Apologies for the delay, I just walked in the door from work. I am fixing what I can right now, there are a few things missing (as you've noticed).

Give me a few minutes and I will send you a beta to try, that will hopefully resolve it.

I have already added an optional "Country", so if you like, you could include that in the XML as well as Location and Site, and it will read it. It's probably just easier to edit it in MacDive afterwards, but if you like hand editing XML as much as I do then it could be a nice option..
User avatar
nick
Site Admin
Posts: 4376
Joined: Sat Apr 12, 2008 8:33 am
Dive Computer: Shearwater Teric
Contact:

Re: Problems importing from old Mac DiveLog

Post by nick »

I've emailed you some details and a link to the beta.
resnick
Posts: 5
Joined: Thu Nov 27, 2014 4:38 am
Dive Computer: Shearwater NERD 2
Location: Urbana, IL US
Contact:

Re: Problems importing from old Mac DiveLog

Post by resnick »

nick wrote:Apologies for the delay, I just walked in the door from work.
Apologies completely unnecessary; I can't thank you enough for your fast work on this.
nick wrote:I am fixing what I can right now, there are a few things missing (as you've noticed).

Give me a few minutes and I will send you a beta to try, that will hopefully resolve it.

I have already added an optional "Country", so if you like, you could include that in the XML as well as Location and Site, and it will read it. It's probably just easier to edit it in MacDive afterwards, but if you like hand editing XML as much as I do then it could be a nice option..
I could claim I did all of my edits in vi, but I used TextWrangler. ;) Everything imported fine, save a couple of little bits I'll send you by email.

Thanks again for the lightning fast work!
User avatar
nick
Site Admin
Posts: 4376
Joined: Sat Apr 12, 2008 8:33 am
Dive Computer: Shearwater Teric
Contact:

Re: Problems importing from old Mac DiveLog

Post by nick »

Oh yeah, vi would have been a good answer! Second only to Emacs.

(See, you can't hide from this particular debate anywhere..)
Post Reply