Files
python-linak-desk-control/README.rst

1.6 KiB

This is a simple program for controlling LINAK Desk Control Cable in linux with simple python and libusb1.

It's a Python implementation of C-Routine of ranma1988

Tested on: Gentoo x64 (December 2018). Might work on Windows too. Tested on model: usb2lin06 with CONTROL BOX CBD6S without safety limit.

Dependencies

This program is using libusb1 which is python wrapper on libusb C library. You can install it by searching for appropriate package in you operating system (i.e. there is a python3-libusb1 package for Ubuntu), or build by yourself issuing following command:

$ pip install -r requirements.txt

Note, that for build process, you might need to have devel packages for libusb C library installed.

Capabilities

  • setting height

  • retrieve current height

Usage

Just trying out in your shell is easy:

$ python3 linak-desk-control.py

It will show you mostly the whole help in order to understand which commands can be executed. E.g. to get the current height:

$ python3 linak-desk-control.py height

And to bring the desk to height 4414:

$ python3 linak-desk-control.py move 4414

License

This piece of work is distributed with GNU GPLv3 or later.