Digital Multimeter provides both a CLI interface and a Python API interface to receive data from a variety of digital multimeters.
Project description
Digital Multimeter
Digital Multimeter provides both a CLI and Python API interface to receive data from a variety of digital multimeters.
See the list of supported multimeters here.
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 - Documentation and examples at digital-multimeter.readthedocs.io
Installation
user@computer:~$ pip install [--upgrade] digital-multimeter
CLI Usage Example
Continuously read the digital-multimeter and pipe the JSON output through jq to
make the JSON output 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"
}
}
Python API Usage
Python-module documentation is available here.
Project
- Github - github.com/ndejong/digital-multimeter
- PyPI - pypi.python.org/pypi/digital-multimeter
- ReadTheDocs - digital-multimeter.readthedocs.io
Copyright © 2021-2023 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file digital_multimeter-0.5.3.tar.gz.
File metadata
- Download URL: digital_multimeter-0.5.3.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.13 tqdm/4.64.0 importlib-metadata/4.6.4 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35ce69696366be0b83b2092e91f3d25d4ca08b3750fde6cfcf4cb5aec80023b4
|
|
| MD5 |
fc9d58b49ea9e2977b512261ee78d2b0
|
|
| BLAKE2b-256 |
d37d4b997d5d106eabae2001942d1415de242cb0afb9128e21b1aacb2bc4dc68
|
File details
Details for the file digital_multimeter-0.5.3-py3-none-any.whl.
File metadata
- Download URL: digital_multimeter-0.5.3-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.13 tqdm/4.64.0 importlib-metadata/4.6.4 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c32a1f1e73398b26e524c644a11594bb736494cfbe117634e3a6420054a4026f
|
|
| MD5 |
a33ae7b446d087a481df9257d7f31972
|
|
| BLAKE2b-256 |
1a183a36acc59a6348c359569ffadb3c40736da27ceae9ed607c52b7183f9331
|