Manually add dive computer, and/or change dive computer on existing dives

319 views
Skip to first unread message

Corey Alexander

unread,
Aug 28, 2018, 12:49:54 PM8/28/18
to Subsurface Divelog
I am in the process of consolidating all of my dive logs into Subsurface. I have 13 years worth of logs, covering 5 dive computers, with most of the dives conducted using 2, and a few times 3, dive computers.

I have 2 questions really, which I'm summarize first:
 - How can I change the dive computer listed on a dive to match a computer in the devices list?
 - How can I manually add a computer to the devices list?

The first question comes about from how I've imported my logs. Most all of the dives I've imported came from other sources:
 - Datatrak with Air Z Nitrox
 - Oceanlog with multiple Pro Plus 2 computers
 - SmartTrak with Subgear XP-3H
 - direct import: Subgear XP-3H (imported as XP-3G)
 - direct import: Scubapro G2 Wrist

Most of my dives with the Subgear XP-3H were imported from SmartTrak data files, and for these dives, the dives show the computer as "Galileo Sol". But it does not appear in the devices list using "Log|Edit device names" from menu.

This morning, I directly imported this months dives from the XP-3H (selecting Subgear and XP-3G as dive computer). After I did this, I have "Subgear XP-3G" in devices list, and it appears on those dives as expected.

What I would like to do is have my prior dives showing "Galileo Sol" to instead show "Subgear XP-3H", which is actually the computer from which those dives originated.


The second question relates to my other dive computers. I'd like this for all my computers, but I'm really focused on my two ProPlus 2 computers. For some dives, I used my ProPlus 2, plus my wife's ProPlus 2 as a backup computer. So I have a number of dives that show 2 computers, imported from OceanLog, but they are both called "Oceanic ProPlus 2". And they are not in the devices list, so I have not way to add/change nicknames.

I would like to add them to the devices list, so I can add nicknames "Corey's ProPlus 2" and "Julie's ProPlus 2". And then I'd like to associate them to the existing dive logs (which is effectively my first question above).


So far, I do not see how I can do this from the Subsurface application. I'm running Windows, but expect this applies generically across Windows, Linux, and OS X. But maybe not. 

Any ideas?

Thanks in advance!

Anton Lundin

unread,
Aug 28, 2018, 2:13:09 PM8/28/18
to Subsurface Divelog
The nicknames you can give computers on "Edit device names" might not work all that well with what the different importers/converters generates. It's probably due to that those importers doesn't generate a deviceid for the computer, and thus we can't map it to anything else but the name that the importer told us that the computer had on that dive.

The ugly and brutal way of fixing this is probably to export all your dives as xml, and then edit the computer names there. That way you can rename them to whatever you like.


//Anton

Corey Alexander

unread,
Aug 28, 2018, 2:29:03 PM8/28/18
to Subsurface Divelog
Anton,

Thanks for the quick response. I figured I could do something like that - export, edit, re-import, etc., but I was hoping to avoid that approach. But if that's all I can do, it's not that complicated, just a bit tedious.

That said, it would be nice to be able to manually add a DC to the device list - then be able to re-associate computers on dives with devices. Probably not as simple as it would sound, but would still be nice :). I might take a look and see for myself - always good to know what's happening under the hood, as it were.

Thanks again!

Corey

Corey Alexander

unread,
Aug 28, 2018, 3:14:47 PM8/28/18
to Subsurface Divelog
That was actually fairly easy. I corrected the names in the exported xml, but also went a step further...

I generated random 32-bit device ids for each of my 3 old computers whose logs were imported from other sources, then added the deviceid attribute with the generated values to the corresponding divecomputer elements in the logs. That got them to appear in the device list, where I could add nicknames.

Took less than 5 minutes to update all the dives (~1000 or so).

Not as nice as being able to do it directly in Subsurface, but I would not describe having to do it manually as as "ugly and brutal" :).

DK

unread,
Sep 12, 2018, 10:25:10 PM9/12/18
to Subsurface Divelog
How did you import your data from Oceanlog to subsurface? I followed the instructions from the subsurface docs: first, find the un-encrypted cached versions of the logs, upload those to divelogs.de, then use subsurface to import from divelogs.de
The result was that the logs from my VT4.1 computer show up as "unknown dive computer" in subsurface.

I will have to try your hand-editing method to restore the computer type.

And a second related question: for me, it seems that some other data was lost in the conversion from OceanLog->divelogs.de->subsurface - the tissue load bar graph meter, ascent rate and alarms. Did you experience data loss for your oceanlog imports?

Miika Turkia

unread,
Sep 16, 2018, 8:32:48 AM9/16/18
to Subsurface Divelog
Can you send me a sample log that you uploaded to divelogs.de? I could take a look at what data we receive when syncing divelogs.de to Subsurface and if there is something that could be added. It might be that the some of the data you are looking for has been stripped before we ever see it, but it might also be that there is something that we just ignore currently.

Dmitry Khabashesku

unread,
Sep 16, 2018, 6:57:13 PM9/16/18
to subsurfac...@googlegroups.com
After some digging, It seems that divelogs.de is failing to import the Oceanlog format completely.

Per the instructions at https://en.divelogs.de/upload_oceanlog.php, I started up Oceanlog (version 2.5.0), then went to C:\Users\<Your Username>\AppData\Local\VirtualStore\Windows\SysWOW6 and found my decrypted logbook, uploaded it to Divelogs.de, then exported that to DLD (divelogs.de custom format). Inspecting the DLD file (XML format), I do not see any headers for the divecomputer model. Also, the timeseries log only contains depth samples, no tank pressure sensor samples (although start and end pressure is logged), and no other samples (TLBG, etc).

Here's a snippet of that file:

<DIVELOGSDATA>
  <DIVELOGSDIVENUMBER>11</DIVELOGSDIVENUMBER>
  <DIVELOGSID>2501974</DIVELOGSID>
  <DATE>22.08.2015</DATE>
  <TIME>12:24:00</TIME>
  <DIVETIMESEC>2280</DIVETIMESEC>
  <SURFACETIME>2220</SURFACETIME>
  <MAXDEPTH>12.5</MAXDEPTH>
  <MEANDEPTH>8.3</MEANDEPTH>
  <LOCATION><![CDATA[Santa Barbara Island]]></LOCATION>
  <SITE><![CDATA[Webster]]></SITE>
  <WEATHER><![CDATA[]]></WEATHER>
  <WATERVIZIBILITY><![CDATA[]]></WATERVIZIBILITY>
  <AIRTEMP>20.0</AIRTEMP>
  <WATERTEMPMAXDEPTH>22.8</WATERTEMPMAXDEPTH>
  <WATERTEMPATEND>20.6</WATERTEMPATEND>
  <PARTNER><![CDATA[]]></PARTNER>
  <BOATNAME><![CDATA[Peace]]></BOATNAME>
  <CYLINDERNAME><![CDATA[]]></CYLINDERNAME>
  <CYLINDERDESCRIPTION><![CDATA[PST HP100]]></CYLINDERDESCRIPTION>
  <DBLTANK>0</DBLTANK>
  <CYLINDERSIZE>11.94</CYLINDERSIZE>
  <CYLINDERSTARTPRESSURE>215.52</CYLINDERSTARTPRESSURE>
  <CYLINDERENDPRESSURE>121.54</CYLINDERENDPRESSURE>
  <WORKINGPRESSURE>237.15</WORKINGPRESSURE>
  <WEIGHT>3.18</WEIGHT>
  <O2PCT>31.0</O2PCT>
  <HEPCT/>
  <LOGNOTES/>
  <LAT/>
  <LNG/>
  <GOOGLEMAPSZOOMLEVEL/>
  <SAMPLEINTERVAL>15</SAMPLEINTERVAL>
  <SAMPLE>
    <DEPTH>2.7</DEPTH>
  </SAMPLE>
  <SAMPLE>
    <DEPTH>2.7</DEPTH>
  </SAMPLE>
...
and so on
...
</DIVELOGSDATA>


--
You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-dive...@googlegroups.com.
To post to this group, send email to subsurfac...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/3dc2401d-0790-4342-9073-21af5992b024%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dmitry Khabashesku

unread,
Sep 16, 2018, 7:09:35 PM9/16/18
to subsurfac...@googlegroups.com
It seems that importing full-featured data from subsurface to divelogs.de also results in data loss.
My subsurface log has dives from my Perdix AI, imported via the subsurface android app. The data looks fine in Subsurface, shows the dive computer details and includes pressure sensor timeseries data. I exported this log to divelogs.de from the subsurface windows desktop program, then logged into divelogs.de and exported from there to their custom DLD format (which presumably should be lossless). The resulting data has stripped the pressure sensor timeseries, computer type, and other information.

DLD look looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<DIVELOGSDATA>
  <DIVELOGSDIVENUMBER>100</DIVELOGSDIVENUMBER>
  <DIVELOGSID>2502093</DIVELOGSID>
  <DATE>15.09.2018</DATE>
  <TIME>09:20:14</TIME>
  <DIVETIMESEC>1850</DIVETIMESEC>
  <SURFACETIME>0</SURFACETIME>
  <MAXDEPTH>20.4</MAXDEPTH>
  <MEANDEPTH>12.0</MEANDEPTH>
  <LOCATION><![CDATA[Redondo Beach]]></LOCATION>
  <SITE><![CDATA[Veteran's Park]]></SITE>

  <WEATHER><![CDATA[]]></WEATHER>
  <WATERVIZIBILITY><![CDATA[]]></WATERVIZIBILITY>
  <AIRTEMP>0.0</AIRTEMP>
  <WATERTEMPMAXDEPTH>15.6</WATERTEMPMAXDEPTH>
  <WATERTEMPATEND>0.0</WATERTEMPATEND>
  <PARTNER><![CDATA[Taher]]></PARTNER>
  <BOATNAME><![CDATA[]]></BOATNAME>
  <CYLINDERNAME><![CDATA[]]></CYLINDERNAME>
  <CYLINDERDESCRIPTION><![CDATA[HP80]]></CYLINDERDESCRIPTION>
  <DBLTANK>0</DBLTANK>
  <CYLINDERSIZE>9.67</CYLINDERSIZE>
  <CYLINDERSTARTPRESSURE>230.42</CYLINDERSTARTPRESSURE>
  <CYLINDERENDPRESSURE>83.70</CYLINDERENDPRESSURE>
  <WORKINGPRESSURE>237.32</WORKINGPRESSURE>
  <WEIGHT>10.89</WEIGHT>
  <O2PCT>0.0</O2PCT>
  <HEPCT/>
  <LOGNOTES/>
  <LAT>33.836349</LAT>
  <LNG>-118.390823</LNG>
  <GOOGLEMAPSZOOMLEVEL>14</GOOGLEMAPSZOOMLEVEL>
  <SAMPLEINTERVAL>10</SAMPLEINTERVAL>
  <SAMPLE>
    <DEPTH>0.0</DEPTH>
  </SAMPLE>
  <SAMPLE>
    <DEPTH>3.17</DEPTH>
  </SAMPLE>
.... and so on...
Reply all
Reply to author
Forward
0 new messages