[go: up one dir, main page]

Skip to content

daq-tools/PyDatalogger

Repository files navigation


PyDatalogger

About

Datalogger for SBC machines like BeagleBone, RaspberryPi or similar.

Supported sensor types

  • BME280
  • BMP180
  • DHT11
  • DS18B20
  • SDS011
  • HX711
  • ABE-DELTA-SIGMA-ADC

Setup

git clone https://github.com/daq-tools/PyDatalogger.git
cd PyDatalogger

virtualenv --python=python3 .venv3
source .venv3/bin/activate
python setup.py develop

Usage

$ pydatalogger --help

Usage:
  pydatalogger info
  pydatalogger readings [--config=<config>] [--target=<target>]... [--dry-run] [--debug]
  pydatalogger --version
  pydatalogger (-h | --help)

Options:
  --config=<config>             Configuration file for runtime settings
  --target=<target>             Data output target
  --version                     Show version information
  --dry-run                     Skip publishing to MQTT bus
  --debug                       Enable debug messages
  -h --help                     Show this screen

Examples:

  # Display readings in JSON format
  pydatalogger readings

  # Publish readings to MQTT broker on localhost
  pydatalogger readings --target=mqtt://localhost/testdrive

  # Publish readings to MQTT broker on remote host
  pydatalogger readings --target=mqtt://daq.example.org/testdrive

Credits

Other projects

  • Terkin is a flexible data logger application for MicroPython and CPython environments. It provides a lot of sensor-, networking- and telemetry- connectivity options.