Sentinel log converter

What
is this

This is a log converter for
the VMS Sentinel
(formerly of VR Technology) rebreather.
Specifically converter of the text log downloaded by the Pro
Link software which stores the original data from the rebreather
in text format.
This client side javascript (ie. it runs only on your browser,
nothing is uploaded anywhere) converts the original data into
Subsurface
compatible format (see caveats below).
I wrote this piece of software because I wanted to continue
using my log software of choice even when going over to a
rebreather. Also, frankly speaking, Pro Link is a hideous piece
of software.

How to use

Search the folder where Pro Link stores the original dive
data. This is usually C:\Program
Files\Prolink\ProLink2010oct\dbtxt. Open the .txt-file you want
to convert in a text editor and copy the content

Empty the upper text field and paste in the content of your log file
to it. The default text is there only as an example

Click on the 'Convert' button at the bottom. If text appears
to the lower text field, then everything is good and the
conversion did succeed. If it did not appear, then something is
wrong, probably I have not taken all cases in consideration in
the program, or the app does not work on your browser (only
tested on Firefox 43 and Chrome 47.0.2526.106. If you encounter
issues, please contact
me: poltsi@777-team.org

After the conversion, the filename field and download button
should have been enabled. You can now save the converted data to
as the given filename, or you can modify it to suite your needs

After storing the file on your filesystem, you can import it
to Subsurface. Start
the program, press either ctrl-I or select Import -> Import log
files from the menu

Finally, add the missing data such as location, buddy,
rating, visibility, suit and notes in the Notes-tab. Also, check
that the cylinders are correctly set up in the Equipment-tab

If you would like to see more features to this, please do
not hesitate to contact me with your suggestion(s)

Caveats
and limitations

The newer VMS RedHead seems to have a bit different fields
than the old (the example log is from a VMS RH). Specifically the
scrubber percentage (A-column) is not anymore in the
promille-left format. The secondary battery-field (C) seems to
be gone too. The script converts correctly the older logs

Not all profile columns are (yet) supported by Subsurface

None of the log data is sent to any server. The parsing is
done on your browser, locally. If you are paranoid, you should
read through the Javascript code, and then only use the page in
the following manner: Load the page, disable all network devices
on your computer/device, paste your file, press convert, save
output, close browser tab. Don't forget to re-enable your
network device

All the cylinders are by default 2l/232bar and without
pressure, you need to manually modify them afterwards

Changelog

v0.12

Use the correct calculation for the profile depth

v0.11

Add gas tag based on what the diluent is.

v0.10

Added mod-value for oxygen.

v0.9

Parse the O2-cell readings as separate sensors. Include the
ceiling as reported by the rebreather. Parse potential warnings
as events.

v0.8

Set the use-attribute for oxygen cylinder and initiate the
presumed diluent gas so that the graph shows correct gas
lines. Use the diluent pressure reading as pressure data
instead of O2. Note that this will make Subsurface disregard
the actual O2-readings and instead interpolate the runtime
values based on start, end pressure and depth

v0.7

Fixed the dive computer info which should have been stored
within the Subsurface settings-section

v0.6

Fixed the month which was shifted with -1

v0.5

Fixed the datetime calculation shakiness

v0.4

Fixed device model which was undefined for the divecomputer-tag

v0.3

Correct handling of divecomputer tag, which fixed also the extradata-issue

v0.2

Fixed surface pressure parsing

Copyright

Copyright (c) 2015 Paul-Erik Törrönen, poltsi@poltsi.fi
Sentinel.js converts from the Prolink (2010) file download format to
Subsurface log format.
Note, this does not read anything but the telemetry of the data downloaded
from your rebreather, none of the additional data you may have added in Prolink
is included.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 and provided that the above
copyright and permission notice is included with all distributed
copies of this or derived software.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.