Skip to main content

MPPT-Reader

A work in progress way to quickly read from an TRISTAR-MPPT-45. Soon there will be added features to logging the data to unique data formats.

If you use the tool, please leave a star, so others can find it too in their search.

Use pip install mppt_reader to download the library.

If you want to just read and modify the MPPT-reader in a pythonic way without logging variables, use MPPTReader class.

If you want to log variables, you can just take your MPPTReader class and pass it into an MPPTLogger instance.

from mppt_reader.reader import MPPTReader
from mppt_reader.logger import MPPTLogger
from mppt_reader.constants import Variable

reader = MPPTReader("COM3")
# You must provide variables, but file_name will default to the current date and time. Update interval is normally 1 second.
logger = MPPTLogger(reader, variables=[Variable.BATTERY_VOLTAGE, Variable.ARRAY_VOLTAGE], file_name="output", update_interval=2)
# Now it will be logging all variables every second to output.csv and you can still mess with the MPTTReader
reader.overrides.battery_voltage_regulation.set_value(11)
# The value is set, but is not currently controlling the actual voltage regulation.
reader.overrides.battery_voltage_regulation.lock() 
# Now, it will start updating with your given value and you can change it.
reader.overrides.battery_voltage_regulation.set_value(10) 
# If you set too high or a too low value, you could cause a fault!
reader.overrides.battery_voltage_regulation.unlock()
# Now it will return control to the slave, make sure to unlock or you will just keep the same value forever.

Metadata

Release files for mppt-reader 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mppt-reader 1.0.5
File Size Uploaded Provenance Actions
mppt_reader-1.0.5.tar.gz 19.0 kB Without provenance Details for mppt_reader-1.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mppt-reader 1.0.5
File Interpreter ABI Platform Actions
mppt_reader-1.0.5-py3-none-any.whl Python 3 none any Details for mppt_reader-1.0.5-py3-none-any.whl

Total release size: 38.1 kB

Release files / mppt_reader-1.0.5.tar.gz

Download URL mppt_reader-1.0.5.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c8a482e7bf8d2232dd25bb214c83c5f8efd96402293bcae0ff956244596cb3af
BLAKE2b-256 checksum
How to use checksums
65efe267610abb010905196693fb08b345a723d4c150266a98f25170ab7284fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / mppt_reader-1.0.5-py3-none-any.whl

Download URL mppt_reader-1.0.5-py3-none-any.whl
Size 19.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3610151625f863282dc8bbf098892a00c2b688a10b40c993f2e59e1be79da418
BLAKE2b-256 checksum
How to use checksums
838a26215f20462764422472d42a671594fa483d0bda9f9d578f23e2131d9a90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Security for mppt-reader 1.0.5

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.

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page