Python Ammeter Logger
Works in conjunction with the Micropython ADC Amperage Monitor
View the details of our load testing series here: https://www.learningtopi.com/category/load-testing/
Introduction
This Python module works with the Micropython ADC Amperage Monitor to collect data from a amperage monitor. The module will control the micropython microcontroller to run a baseline of the current sensor or collect data.
The module can be run of the command line or imported into other projects to record amperage data.
Installation
The package is available on PyPi or can be installed manually using the why/tar.gz file in the dist folder.
pip3 install ammeter_logger
CLI Usage
(venv) $ python3 -m ammeter_logger
usage: __main__.py [-h] [--get-config] [--get-status] [--skip-init] [--force-init] [--init-only] [--sample-interval SAMPLE_INTERVAL] [--capture-time CAPTURE_TIME] [--baudrate BAUDRATE] [--log-level LOG_LEVEL]
DEVICE OUTPUT_FILE
__main__.py: error: the following arguments are required: DEVICE, OUTPUT_FILE
(venv) $
The --get-config and --get-status parameters can be used to get the current status of the microcontroller.
It is recommended to run the following the initialize the ammeter (get a baseline 0 reading) with no load on the ammeter before connecting the device you intend to monitor. Initialization can be run using the --force-init option.
After the ammeter is initialized, the capture can be started using the --capture-time interval. Logged data will be stored in the specified output_file (as a CSV).
Metadata
Release files for ammeter-logger 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ammeter_logger-0.1.2.tar.gz | 9.2 kB | Without provenance | Details for ammeter_logger-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ammeter_logger-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for ammeter_logger-0.1.2-py3-none-any.whl |
Total release size: 18.4 kB
Release files / ammeter_logger-0.1.2.tar.gz
| Download URL | ammeter_logger-0.1.2.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4dbf1adc412201f9cee9badac033fe892d76c10de471dcb1a1807dace4fcae8e
|
|
BLAKE2b-256 checksum How to use checksums |
d78485fdbbe407e2a6c886078e22d834a31d84b2f8f29f2f62548e1aeb5a0467
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / ammeter_logger-0.1.2-py3-none-any.whl
| Download URL | ammeter_logger-0.1.2-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c67cca4b7005026162229998773a49bf2f73af6300bfa57756dd5d2889e00c29
|
|
BLAKE2b-256 checksum How to use checksums |
3e0acd8150222c5f0b5c56abc86059632dedd4b600c6afe486bad33836954637
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Security for ammeter-logger 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.