Skip to main content

Unofficial library to handle data from a Technische Alternative D-LOGG device.

Project description

Unofficial python package to read data from a Technische Alternative D-LOGG device (using dlogg-driver) and upload it to a database.


sudo apt install libmysqlclient-dev
pip install dlogg-db


from dlogg_driver import DLoggDevice
from dlogg_db import DLoggDbUpload, DLoggDbDownload

# upload
with DLoggDevice("/dev/ttyUSB0") as device:
    with DLoggDbUpload('db-host', 3306, 'db-name', 'db-user', 'db-pw') as upload:

# download
with DLoggDbDownload('db-host', 3306, 'db-name', 'db-user', 'db-pw') as download:
  end = datetime.datetime.utcnow()
  start = end - datetime.timedelta(minutes=10)
  print download.fetch_data_range(start, end)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
dlogg_db-0.3.1-py2-none-any.whl (8.3 kB) Copy SHA256 hash SHA256 Wheel py2
dlogg-db-0.3.1.tar.gz (4.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page