Metadata-Version: 2.0
Name: dlogg-driver
Version: 0.1.0
Summary: Unofficial library to read data from a Technische Alternative D-LOGG device.
Home-page: https://github.com/ubruhin/python-dlogg-driver
Author: U. Bruhin
Author-email: python-dlogg@ubruhin.ch
License: GPLv3
Keywords: technische alternative,dlogg,d-logg,d logg
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
Classifier: Programming Language :: Python :: 2.7
Requires-Dist: enum34
Requires-Dist: pyserial

python-dlogg-driver
===================

Unofficial python package to read data from a `Technische Alternative`_ `D-LOGG`_ device.


Installation
------------

.. code:: bash

  pip install dlogg-driver


Usage
-----

.. code:: python

  from dlogg_driver import DLoggDevice

  with DLoggDevice("/dev/ttyUSB0") as device:
      print "Type: {}".format(device.get_type())
      print "Firmware: {}".format(device.get_firmware_version())
      print "Mode: {}".format(device.get_mode())
      print "Logging criterion: {}".format( device.get_logging_criterion())
      header = device.get_header()
      print "Number of available samples: {}".format(header.get_sample_count())
      data = device.fetch_data_range(header.start, 1)
      print "Data [0]: {}".format(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`_.


.. _`Technische Alternative`: http://www.ta.co.at/
.. _`D-LOGG`: http://www.ta.co.at/de/produkte/pc-anbindung/datenkonverter-d-logg.html
.. _`d-logg-linux`: http://d-logg-linux.roemix.de/


