Skip to main content

Python module to get status of your solar charge controller TS-MPPT-60.

Project description

Status

Build Status Coverage Status

TS-MPPT-60 driver module

This is python driver module to get the following status of TS-MPPT-60.

  • Amp Hours

  • Array Current

  • Array Voltage

  • Battery Temperature

  • Battery Voltage

  • Charge Current

  • Heat Sink Temperature

  • Kilowatt Hours

  • Output Power

  • Sweep Pmax

  • Sweep Vmp

  • Sweep Voc

  • Target Voltage

Requirement

  • requests

How to install

  1. ./setup.py build

  2. ./setup.py install

How to use

SystemStatus class object is iterator containing all live status data of TS-MPPT-60. Try the following line.

print(SystemStatus("192.168.1.20").get())

The result is like following.

{'Amp Hours': {'group': 'Counter', 'unit': 'Ah', 'value': 18097.9},
 'Array Current': {'group': 'Array', 'unit': 'A', 'value': 1.4},
 'Array Voltage': {'group': 'Array', 'unit': 'V', 'value': 53.41},
 'Battery Voltage': {'group': 'Battery', 'unit': 'V', 'value': 23.93},
 'Charge Current': {'group': 'Battery', 'unit': 'A', 'value': 3.2},
 'Heat Sink Temperature': {'group': 'Temperature', 'unit': 'C', ...},
 'Kilowatt Hours': {'group': 'Counter', 'unit': 'kWh', 'value': 237.0},
 'Target Voltage': {'group': 'Battery', 'unit': 'V', 'value': 28.6}}

The above data is limited information. You can disable the limitter by setting False to the second argument as SystemStatus() class.

print(SystemStatus("192.168.1.20").get(False))

The result is like following.

{'Amp Hours': {'group': 'Counter', 'unit': 'Ah', 'value': 18097.8},
 'Array Current': {'group': 'Array', 'unit': 'A', 'value': 1.3},
 'Array Voltage': {'group': 'Array', 'unit': 'V', 'value': 53.41},
 'Battery Temperature': {'group': 'Temperature', 'unit': 'C', ...},
 'Battery Voltage': {'group': 'Battery', 'unit': 'V', 'value': 24.01},
 'Charge Current': {'group': 'Battery', 'unit': 'A', 'value': 3.2},
 'Heat Sink Temperature': {'group': 'Temperature', 'unit': 'C', ...},
 'Kilowatt Hours': {'group': 'Counter', 'unit': 'kWh', 'value': 237.0},
 'Output Power': {'group': 'Battery', 'unit': 'W', 'value': 76.0},
 'Sweep Pmax': {'group': 'Array', 'unit': 'W', 'value': 73.0},
 'Sweep Vmp': {'group': 'Array', 'unit': 'V', 'value': 53.41},
 'Sweep Voc': {'group': 'Array', 'unit': 'V', 'value': 60.05},
 'Target Voltage': {'group': 'Battery', 'unit': 'V', 'value': 28.6}}

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

tsmppt60-driver-0.2.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

tsmppt60_driver-0.2.0-py3.9.egg (8.2 kB view details)

Uploaded Egg

File details

Details for the file tsmppt60-driver-0.2.0.tar.gz.

File metadata

  • Download URL: tsmppt60-driver-0.2.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for tsmppt60-driver-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d75e408f3267bb33f0f343ed8b19f18c6d77f57a4372f65149b6e89eb1a8d2ee
MD5 eeac71dd7803c0b2dc3502355b16f3d5
BLAKE2b-256 e31caef6a93460187a32ec01a04c7b94dcd8c5f24c1c9a66b39848a993c6b6d4

See more details on using hashes here.

File details

Details for the file tsmppt60_driver-0.2.0-py3.9.egg.

File metadata

  • Download URL: tsmppt60_driver-0.2.0-py3.9.egg
  • Upload date:
  • Size: 8.2 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for tsmppt60_driver-0.2.0-py3.9.egg
Algorithm Hash digest
SHA256 083d4e26d61bf24263f7f086d0a0230e399c3377450817e4638fdbe84b74d3a5
MD5 09762fe4ea87e708dda0e4b36b568751
BLAKE2b-256 a8cd5b19bf96ba160e20e191169781351aaaf9c5178a19f93bdf3fefcfa2e43d

See more details on using hashes here.

Supported by

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