{
  "markdown": "# TS-MPPT-60 driver module\n\nThis is python driver module to get the following status of TS-MPPT-60.\n\n* Amp Hours\n* Array Current\n* Array Voltage\n* Battery Temperature\n* Battery Voltage\n* Charge Current\n* Heat Sink Temperature\n* Kilowatt Hours\n* Output Power\n* Sweep Pmax\n* Sweep Vmp\n* Sweep Voc\n* Target Voltage\n\n# Requirement\n\n* requests\n\n# How to install\n\n```bash\npip install tsmppt60-driver\n```\n\n# How to use\n\nSystemStatus class object is iterator containing all live status data of TS-MPPT-60. Try the following line.\n\n```python\nprint(SystemStatus(\"192.168.1.20\").get())\n```\n\nThe result is like following.\n\n```\n{'Amp Hours': {'group': 'Counter', 'unit': 'Ah', 'value': 18097.9},\n 'Array Current': {'group': 'Array', 'unit': 'A', 'value': 1.4},\n 'Array Voltage': {'group': 'Array', 'unit': 'V', 'value': 53.41},\n 'Battery Voltage': {'group': 'Battery', 'unit': 'V', 'value': 23.93},\n 'Charge Current': {'group': 'Battery', 'unit': 'A', 'value': 3.2},\n 'Heat Sink Temperature': {'group': 'Temperature', 'unit': 'C', ...},\n 'Kilowatt Hours': {'group': 'Counter', 'unit': 'kWh', 'value': 237.0},\n 'Target Voltage': {'group': 'Battery', 'unit': 'V', 'value': 28.6}}\n```\n\nThe above data is limited information. You can disable the limitter by setting False to the second argument as SystemStatus() class.\n\n```python\nprint(SystemStatus(\"192.168.1.20\").get(False))\n```\n\nThe result is like following.\n\n```\n{'Amp Hours': {'group': 'Counter', 'unit': 'Ah', 'value': 18097.8},\n 'Array Current': {'group': 'Array', 'unit': 'A', 'value': 1.3},\n 'Array Voltage': {'group': 'Array', 'unit': 'V', 'value': 53.41},\n 'Battery Temperature': {'group': 'Temperature', 'unit': 'C', ...},\n 'Battery Voltage': {'group': 'Battery', 'unit': 'V', 'value': 24.01},\n 'Charge Current': {'group': 'Battery', 'unit': 'A', 'value': 3.2},\n 'Heat Sink Temperature': {'group': 'Temperature', 'unit': 'C', ...},\n 'Kilowatt Hours': {'group': 'Counter', 'unit': 'kWh', 'value': 237.0},\n 'Output Power': {'group': 'Battery', 'unit': 'W', 'value': 76.0},\n 'Sweep Pmax': {'group': 'Array', 'unit': 'W', 'value': 73.0},\n 'Sweep Vmp': {'group': 'Array', 'unit': 'V', 'value': 53.41},\n 'Sweep Voc': {'group': 'Array', 'unit': 'V', 'value': 60.05},\n 'Target Voltage': {'group': 'Battery', 'unit': 'V', 'value': 28.6}}\n```\n\nJSON string can be got with following code.\n\n```bash\n$ python -c \"from tsmppt60_driver import *; import json; print(json.dumps(SystemStatus('192.168.1.20').get()))\" | jq '.\"Battery Voltage\"'\n\n{\n  \"group\": \"Battery\",\n  \"value\": 28.6,\n  \"unit\": \"V\"\n}\n```\n",
  "bytes": 2533,
  "sha": "8b3aaef6b631667ce42e336ee44460c72650c1e9c4e5d345528cbe551008a0f1",
  "repo_slug": "dodo5522/tsmppt60_driver",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/okf_dodo5522_tsmppt60_driver_docs_okf_tsmppt_80170f61/readme"
}