aboutsummaryrefslogtreecommitdiffstats
path: root/xslt
AgeCommit message (Collapse)Author
2017-05-04Include one more way to parse buddy on UDDF importGravatar Miika Turkia
Fixes #377 Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-11Fix DivingLog's O2 importGravatar Miika Turkia
Make sure the Gas setup contains O2 value when trying to import that. In latest log sample the Gas seems to contain the decompression algorithm used. And as this value was grabbed after O2, we ended up with empty O2. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-11Fix DivingLog importGravatar Miika Turkia
DivingLog seems to report cylinder start and end pressures in metric format, but sample readings are in imperial in case user has selected this unit. So we must convert the sample pressures in this case. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-01Add the pressure attribute only if it existsGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-01Do not convert empty temperatureGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-01Fix imperial unit conversion on CSV importGravatar Miika Turkia
Math only takes numbers, need to ignore the ft part. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-01CSV import: return value only if it existsGravatar Miika Turkia
If the last two fields were empty, we returned the field separator as next to last value. Now we make sure not to return field separator as field value. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-01Only import weight if availableGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-01Fix CSV import of cylinder pressuresGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-01Limit precision for temperature in CSV importGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-01Limit max depth precision on CSV importGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-01Limit mean depth precision on CSV importGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-01More precision in CSV export for depthsGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-01Fix size conversion on imperial CSV importGravatar Miika Turkia
We really need the decimal separator to get correct results Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-01CSV export: convert cylinder size to imperialGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-01CSV export: export only existing temperaturesGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-02-26Fix imperial conversion for weight on CSV exportGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-02-18Add geolocation to divelogs.de exportGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-02-09Define numberField variable on CSV importGravatar Miika Turkia
We need to define the import variables that we use. This should fix the Seabear HUDC import and thus the corresponding test case.
2017-01-10Parse AP Divesight time formatGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-01-01AV1 import: deco mode reported by DCGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-01-01AV1 import: grab NDL infoGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-01-01AV1 import: move dcmode detectionGravatar Miika Turkia
We need to set the attributes before we can start parsing other tags, as cylinder. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-01-01AV1 import: parse temperatureGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-01-01AV1 import: fix indentationGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-01-01AV1 import: move tag definition for future changesGravatar Miika Turkia
This should allow us to add different attributes to the samples while parsing the log. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2016-12-31Import AV1 alertsGravatar Miika Turkia
This imports the events from AV1 using the original event description. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2016-12-31AV1 import: parse dive modeGravatar Miika Turkia
This is tested only with OC and requires that other modes use compatible terms for the mode. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2016-12-31XSLT to parse AV1 log fileGravatar Miika Turkia
Support for importing the dive profile from Underwater Technologies AV1 dive computer export. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2016-11-15CSV import: convert imperial mean depth to metricGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-11-15Fix imiperial conversion on CSV importGravatar Miika Turkia
Somehow the divider lost one zero during copypaste to this XSLT file. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-11-15Fix time fraction calculation for CSV importGravatar Miika Turkia
Previous formula didn't handle values of less than 10 correctly. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-11-15CSV import: Support sec,fraction formatGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-11-15Manual CSV import had wrong tag name for DCGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-11-15CSV import might have time in sec.fraction formatGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-11-15CSV import: support for decimal comma on temperatureGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-11-15CSV import: support for decimal comma on depthGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-11-15CSV import: support time with decimal commaGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-11-05DL7 import: ignore non-numeric pressureGravatar Miika Turkia
If pressure field is empty, we do not want to have field separator as pressure value. This would flood the console with parsing error messages. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-10-03Fix month on Shearwater importGravatar Miika Turkia
Fixes #1096 Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-09-24Support h:m:s format for duration on CSV importGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-07-28Fix cylinder pressure for UDDF exportGravatar Miika Turkia
Fixes #1086 Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-05-16Use manual temperatures in CSV details importGravatar Miika Turkia
When importing dive details from a CSV file, it is better to treat the values as manually imported instead of imported from a dive computer. The original way discarded the temperature values from the details import if a dive profile was imported and merged to the dive details. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-05-16Typo in CSV importGravatar Miika Turkia
Variables are started with $ sign... Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-05-02CSV import: import dive number if definedGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-05-02CSV import: import time field if availableGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-05-02CSV import: support for user specified date formatGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-05-02CSV import: use date field on profile importGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-05-02CSV import: convert cylinder size from imperialGravatar Miika Turkia
This will convert cylinder size when importing from imperial units. I am using default working pressure of 3000 PSI that is not precisely correct, but should be close enough for the most common aluminium cylinders. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-04-25CSV import: support min.sec formatGravatar Miika Turkia
Assume a format containing a dot to be min.sec as defined in DL7 specification. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>