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
pip install tsmppt60-driver
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}}
JSON string can be got with following code.
$ python -c "from tsmppt60_driver import *; import json; print(json.dumps(SystemStatus('192.168.1.20').get()))" | jq '."Battery Voltage"'
{
"group": "Battery",
"value": 28.6,
"unit": "V"
}
Metadata
Release files for tsmppt60-driver 0.2.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 | |
|---|---|---|---|
| tsmppt60_driver-0.2.2.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tsmppt60_driver-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.4 kB
Release files / tsmppt60_driver-0.2.2.tar.gz
| Download URL | tsmppt60_driver-0.2.2.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
21feef56b52787151e7abfdf9a5a41e6d2f94b783bb32e007a70830a461e5ad5
|
|
BLAKE2b-256 checksum How to use checksums |
87c1f110626e69bae4d60c1116bfaec66b98fb41c69dcc7ec887d0532779c1cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.12.14 Linux/7.0.0-28-generic
|
Release files / tsmppt60_driver-0.2.2-py3-none-any.whl
| Download URL | tsmppt60_driver-0.2.2-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
476faa83b8ba89381a97f3d99cf47ac78f00c060041d17788cc2e9af9f6869c5
|
|
BLAKE2b-256 checksum How to use checksums |
6e4015d9d61f17a70308ce6bba94d06f4a4491dd7bfc8d37fe7e36a9ba92097b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.12.14 Linux/7.0.0-28-generic
|