GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - kristapsdz/divecmd: download and process dive computer data

BranchesTags
Open more actions menu

Latest commit

 

History

363 Commits
363 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE.md
LICENSE.md
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
common.c
common.c
 
 
compats.c
compats.c
 
 
configure
configure
 
 
daily.xml
daily.xml
 
 
day1.xml
day1.xml
 
 
day2.xml
day2.xml
 
 
dcmd.1
dcmd.1
 
 
dcmd2csv.1
dcmd2csv.1
 
 
dcmd2grap.1
dcmd2grap.1
 
 
dcmd2json.1
dcmd2json.1
 
 
dcmd2pdf.1
dcmd2pdf.1
 
 
dcmd2ps.1
dcmd2ps.1
 
 
dcmd2ssrf.1
dcmd2ssrf.1
 
 
dcmdedit.1
dcmdedit.1
 
 
dcmdedit.c
dcmdedit.c
 
 
dcmdfind.1
dcmdfind.1
 
 
dcmdls.1
dcmdls.1
 
 
dcmdterm.1
dcmdterm.1
 
 
divecmd2csv.c
divecmd2csv.c
 
 
divecmd2divecmd.c
divecmd2divecmd.c
 
 
divecmd2grap.c
divecmd2grap.c
 
 
divecmd2json.c
divecmd2json.c
 
 
divecmd2list.c
divecmd2list.c
 
 
divecmd2pdf.in
divecmd2pdf.in
 
 
divecmd2ps.in
divecmd2ps.in
 
 
divecmd2ssrf.c
divecmd2ssrf.c
 
 
divecmd2term.c
divecmd2term.c
 
 
download.c
download.c
 
 
extern.h
extern.h
 
 
index.css
index.css
 
 
index.xml
index.xml
 
 
list.c
list.c
 
 
main.c
main.c
 
 
mandoc.css
mandoc.css
 
 
multiday.xml
multiday.xml
 
 
parser.c
parser.c
 
 
parser.h
parser.h
 
 
screenshot1.png
screenshot1.png
 
 
screenshot2.png
screenshot2.png
 
 
slider.js
slider.js
 
 
ssrf2dcmd.1
ssrf2dcmd.1
 
 
ssrf2divecmd.c
ssrf2divecmd.c
 
 
temperature.xml
temperature.xml
 
 
tests.c
tests.c
 
 
versions.xml
versions.xml
 
 
xml.c
xml.c
 
 

Repository files navigation

Synopsis

divecmd drives libdivecomputer to extract the contents of your dive computer in a safe, simple manner. It has several programs:

  • dcmd(1), which downloads, parses, and formats dives;
  • dcmdterm(1), which graphs formatted dives in an ANSI/VT100 terminal;
  • dcmd2grap(1), which graphs using grap(1);
  • dcmd2json(1), which exports dive profiles to the JSON format;
  • dcmd2csv(1), which exports to CSV (usually for Subsurface).
  • dcmdfind(1), which searches for dives;
  • dcmdedit(1), which edits dive properties;
  • dcmdls(1), which lists dive profiles.

For interoperability with Subsurface, it features:

  • dcmd2ssrf(1), for convertint into Subsurface; and
  • ssrf2dcmd(1) for converting out.

It compiles and runs on Linux, Mac OS X, and OpenBSD. For Mac OS X machines with homebrew, see BSD.lv's homebrew-repo.

There are also some supporting utilities:

  • dcmd2pdf(1), which manages a groff(1) toolchain into PDF;
  • dcmd2ps(1), which does the same but for PS (Mac OS X's groff(1) doesn't have PDF support); and

I forked libdivecomputer's dctool to write dcmd(1) --- originally to provide output like Subsurface's XML format, but later to significantly simplify the code, to add sandboxing via pledge(2), and to provide multiple front-ends.

If you have a feature in mind, I'm very happy to be encouraged to implement it with new dive computers, gear, or a place to dive...

Installation

To install divecmd, you need a recent version of libdivecomputer and libexpat (the latter is installed by default on most modern UNIX machines). You'll probably also want groff(1) and grap(1). Note: if you're running Mac OS X, your version of groff(1) doesn't support PDF output.

Just run the following:

./configure
make
sudo make install

Or if you're on OpenBSD, use doas instead of sudo. That's it!

You'll probably need to provide paths to the third-party libdivecomputer installation, however. To do so, just add a file configure.local that includes the LDFLAGS and CPPFLAGS set to the appropriate paths. It will be automatically picked up when you run configure. Alternatively, you can pas the LDFLAGS and CPPFLAGS variables to the configure script.

Note: this is a shell script, not a Makefile component, so no spaces around the equal sign.

License

The sources use the LGPL as printed in the LICENSE.md file. Why not the usual ISC license? Because this tool began as a fork of LGPL'd software.

About

download and process dive computer data

kristaps.bsd.lv/divecmd

Topics

divedive-computergraphunix-command

Resources

Readme
LGPL-2.1 license
Activity

Stars

5 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.