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
digital_multimeter-0.5.1.tar.gz
(15.1 kB
view hashes)
Built Distribution
Close
Hashes for digital_multimeter-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 487ae329a8624f71e5a84c61a787a0693023ebd65d30c8107461b5de153f191b |
|
MD5 | 1a88a41877af6460f5fc581c7fe1ee7b |
|
BLAKE2b-256 | 37f8b504e61a753e15be2f1046421cf09ec8622f866d0b9fa32de770b19ae523 |