Skip to content

dracal-usb-get quick start

dracal-usb-get is the command line tool that reads your Dracal devices connected by USB and prints the values in the terminal. Any script or program that can run a command and read its output can use it, which makes it the simplest way to bring Dracal data into your own system. It does not need the Dracal device service.

This page takes you from the install to a first reading. dracal-usb-get in detail covers every option.

Download

The tools come with the Dracal Utilities installer of your operating system: see Downloads.

Run the DracalUtilities installer and keep the Command Line Tools component selected (it is by default).

Install the dracal-cli package for the tools only, or DracalUtilities for the tools, the service and DracalView. These two cannot be installed together.

sudo apt install ./dracal-cli-*.deb      # Debian, Ubuntu, Raspberry Pi OS
sudo dnf install ./dracal-cli-*.rpm      # RHEL family
sudo zypper install ./dracal-cli-*.rpm   # SUSE family

The install adds your user to the groups that give access to the devices without sudo (plugdev and dialout). Log out and back in for this to take effect.

On a Raspberry Pi, follow the Raspberry Pi guide.

Open the DracalUtilities disk image and install DracalView.

On macOS, the tools are inside DracalView

There is no separate command line package for macOS: the tools are installed with DracalView, inside the application itself. Install DracalView even if you only want the command line tools.

Locate and run the tools

The tools are run from a terminal, not with a double click.

The tools are in C:\Program Files\Dracal\Cmd. This folder is not added to the PATH.

The Dracal tools shortcut of the Start menu opens a command prompt already in that folder. From any other terminal:

cd "C:\Program Files\Dracal\Cmd"
dracal-usb-get -h

The tools are in /usr/bin, so they run from any folder:

dracal-usb-get -h

The tools are inside the DracalView application, in /Applications/DracalView.app/Contents/MacOS/. To see them in the Finder, right click DracalView and choose Show Package Contents.

cd /Applications/DracalView.app/Contents/MacOS/
./dracal-usb-get -h

This folder is not in the PATH. To run the tools from any folder, give the full path (/Applications/DracalView.app/Contents/MacOS/dracal-usb-get), or add the folder to the PATH of your shell:

echo 'export PATH="$PATH:/Applications/DracalView.app/Contents/MacOS"' >> ~/.zshrc

First commands

Plug in a device, then list what is connected:

dracal-usb-get -l

Each device is shown with its model, its serial number, its firmware version and its channels:

Found: 'VCP-PTH450-CAL', Serial: 'E22196', Version 2.10, Channels: 7

The lines that follow give one channel each, with its id. A channel is a real one (a quantity the device measures, such as temperature) or a virtual one (a value computed from the others, such as the dew point).

Read channels 0, 1 and 256 of the device E22196:

dracal-usb-get -s E22196 -i 0,1,256
101.50, 22.64, 5.84

The values are separated by commas, in the order the channels were asked for. This one line is what your program reads.

Nothing is listed on Linux?

If dracal-usb-get -l lists nothing but works with sudo, you have not logged out and back in since the install.

Next steps