Skip to main content

Ammeter logging tool - used to receive from micropython serial connection

Project description

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).

sample graph

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ammeter_logger-0.1.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

ammeter_logger-0.1.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file ammeter_logger-0.1.2.tar.gz.

File metadata

  • Download URL: ammeter_logger-0.1.2.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for ammeter_logger-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4dbf1adc412201f9cee9badac033fe892d76c10de471dcb1a1807dace4fcae8e
MD5 350ba68129c94680c5f1a1df6f0e1461
BLAKE2b-256 d78485fdbbe407e2a6c886078e22d834a31d84b2f8f29f2f62548e1aeb5a0467

See more details on using hashes here.

File details

Details for the file ammeter_logger-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ammeter_logger-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c67cca4b7005026162229998773a49bf2f73af6300bfa57756dd5d2889e00c29
MD5 cf6b1b7a9685ec26661b9a73d9ed2628
BLAKE2b-256 3e0acd8150222c5f0b5c56abc86059632dedd4b600c6afe486bad33836954637

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page