Command line

Discussions about Diving Log 6.0 - questions and hints
Post Reply
Posts: 10
Joined: Fri Jan 19, 2018 21:14
Location: Toulon / France

Command line

Post by WileCoyote »

Hi !

I'm trying to have some automation in my "after dive work" (retrieving pictures from GoPro and camera, ...). One step is obviously download dive data from my computer into divinglog.

Is there (or could there be) an option in command line to do so, such like

Code: Select all

C:\...\DivingLog.exe /import <name> /nb <n>
where <name> is one from the import shortcuts as in the circle in the attached picture and <n> is the number of dives to import from the most recent one.
DivingLog Import capture
DivingLog Import capture
01.png (57.18 KiB) Viewed 14 times
Site Admin
Posts: 5646
Joined: Sat Feb 08, 2003 21:02
Location: Coburg

Re: Command line

Post by divinglog »


There is already command line support, however not in a way to automatically import dives. To automatically launch the last used import dialog, you can either right click the taskbar shortcut and select "Import":

Image1.png (65.14 KiB) Viewed 12 times

Or you can use these command line arguments (which is like clicking the shortcut item):

Code: Select all

"Path\to\Divelog.exe" Task:Import
Available Task Commands: "Import", "Download", "Logbook", "Statistics", "Equipment", "Settings"

I think automatically importing X number of dives should be possible, however you would have to dynamically adjust the number for each import or Diving Log would have to auto detect new dives (which is certainly possible).
Post Reply