graph dives on the terminal
utility accepts XML files
generated by divecmd(1)
and graphs depths and/or
temperatures on the terminal. Multiple dives are stacked atop each other. Its
arguments are as follows:
- Accumulate dives instead of showing them stacked. This is
useful for free-diving where multiple dives are done in sequence.
- Show the legend.
- Don't show UTF-8 or ANSI colours.
- fl t
- Show temperatures if the dive profile contains them.
- Parse files in verbose mode.
- XML input files with one or more dives.
uses ANSI/VT100 terminal escapes for
console manipulation and colours. If files
empty or “-”, standard input is used.
By default, divecmd2term
graphs depth. Each dive is
associated with a colour that is the same for both graphs. In practise, more
than three dives is a little much. A title is printed above the graphs, along
with the associated line colour, identifying the dive.
Multiple graphs are stacked atop each other with the x-axis being the relative
time into the dive. In -a
however, graphs are shown as starting at the first date and time. (Dives must
have been parsed with a date and time). This is useful, for example, with a
sequence of free-dives.
utility exits 0 on success,
and >0 if an error occurs.
To pipe the output of the day's free-dives from on a Suunto D6i:
divecmd -r "" "suunto d6i"
| divecmd2term -a
This will extract only the current day's dives, then format them alongside
(instead of stacked) using UTF-8 characters.
To compare two dive profiles previously downloaded into
divecmd2term dive1.xml dive2.xml
utility was written by