Unofficial library to read data from a Technische Alternative D-LOGG device.
Project description
Unofficial python package to read data from a Technische Alternative D-LOGG device.
Installation
pip install dlogg-driver
Usage
from dlogg_driver import DLoggDevice
with DLoggDevice("/dev/ttyUSB0") as device:
print u"Type: {}".format(device.get_type())
print u"Firmware: {}".format(device.get_firmware_version())
print u"Mode: {}".format(device.get_mode())
print u"Logging criterion: {}".format(unicode(device.get_logging_criterion()))
print u"Current data: {}".format(unicode(device.get_current_data()))
header = device.get_header()
print u"Number of available samples: {}".format(header.get_sample_count())
data = device.fetch_data_range(header.start, 1)
print u"Data [0]: {}".format(unicode(data[0]))
device.fetch_end()
Credits
Many thanks to Technische Alternative for allowing me to create and publish this package under a free software license!
Thanks also to H. Römer for publishing d-logg-linux.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dlogg-driver-0.2.0.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for dlogg_driver-0.2.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02bb55d2cd48db2b3d477752027775a7c4f56d3f66d553f8dbbde5874e599ff1 |
|
MD5 | 1f2f72dae3a4ff1df5a21b7b0bca1f79 |
|
BLAKE2b-256 | c9485d2c5444d851c9342293d5521d1eef0d6ad63ef874f7a6f1227face3cb16 |