Digital Multimeter provides both a CLI interface and a Python3 library interface to receive data from a variety of digital multimeters.
Project description
Digital Multimeter
Digital Multimeter provides both a command-line interface and a Python module interface to receive data from a variety of digital multimeters. Checkout the list of supported multimeters.
Features
- Command line and Python module interface to digital multimeters
- Continuous live data readings (using
--count 0
) - Output in json or csv formats
- Output to console or file, allowing other tools to pickup and use the data
- Configuration via config-file or environment-variables
- Easy to expand for new digital-multimeter protocols
- Easy installation using PyPI
pip
- Plenty of documentation and examples - https://digital-multimeter.readthedocs.io
Installation
user@computer:~$ pip3 install digital-multimeter
Command Line Usage
Continuously read the digital-multimeter and pipe the JSON output through jq
making it look prettier.
user@computer:~$ dmm read --connect /dev/ttyUSB0 --count 0 | jq .
{
"reading": {
"value": 156.70000000000002,
"unit_name": "volts",
"unit_symbol": "V",
"scale": 0.001,
"scale_name": "milli",
"scale_symbol": "m",
"scaled_value": 0.15670000000000003,
"is_relative": false
},
"instrument": {
"module": "MultimeterDigitechQM1538",
"operation_mode": "voltage_dc",
"low_battery": false,
"is_hold": false
},
"time": {
"elapsed": 0.349347334,
"interval": 0.349347334,
"timestamp": 1605936374.7694516,
"unit_name": "second",
"unit_symbol": "s"
}
}
Plenty more command-line examples available here.
Python Module Usage
Python-module documentation is available here.
Project
- Github - github.com/ndejong/digital-multimeter
- PyPI - pypi.python.org/pypi/digital-multimeter
- TravisCI - travis-ci.org/github/ndejong/digital-multimeter
- ReadTheDocs - digital-multimeter.readthedocs.io
Copyright © 2020 Nicholas de Jong
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
digital-multimeter-0.3.2.tar.gz
(12.1 kB
view hashes)
Built Distribution
Close
Hashes for digital_multimeter-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ae1b2752b1673e30a6556c64da925609fd7c1f239360fcd9b3e6673f19e69d7 |
|
MD5 | 3cee59d706e187cde83c252419a5855f |
|
BLAKE2b-256 | 06718444d2df6e6d7c7a2abe2bc757461cb89d16cc9a28d11f062cea520af4e3 |