Skip to main content

No project description provided

Project description

pygoodwe

A command line tool and python library to query the GOODWE SEMS Portal APIs.

travis-ci build status

Installation

You need to have Python 3 and pip installed. Then:

sudo pip3 install pygoodwe

Determine the Station ID from the GOODWE site as follows. Open the Sems Portal. The Plant Status will reveal the Station ID in the URL. Example:

https://www.semsportal.com/powerstation/powerstatussnmin/11112222-aaaa-bbbb-cccc-ddddeeeeeffff

Then the Station ID is 11112222-aaaa-bbbb-cccc-ddddeeeeeffff.

Contributions

Please feel free to lodge an issue or pull request on GitHub.

Thanks

Disclaimer

GOODWE access is based on the undocumented API used by mobile apps. This could break at any time.

Version history

  • 0.0.1 - 0.0.3 2019-10-09 Initial versions, basically just getting packaging and the most simple things working
  • 0.0.4 2019-10-09 Fixed a bug that mis-identified the load generating power.
  • 0.0.5 2019-10-09 Updated setup.py to build in a requirement for requests
  • 0.0.6-0.0.7 2019-10-12 Updated SingleInverter to return battery state of charge, then fixed the fact I was implementing the same thing two different ways...
  • 0.0.8 2019-10-12 I really should write some tests for this. Fixed SingleInverter.get_battery_soc() to actually work.
  • 0.0.9 2019-10-12 Catching an error when the inverter data doesn't load.
  • 0.0.10 ... not sure?
  • 0.0.11 2019-11-05 Commented out some non-functional code.
  • 0.0.12 2019-12-03 Removed the non-used code, fixed a bug.
  • 0.0.13 2020-06-22 Added getPmeter from community submission, fixed a lot of pylint errors
  • 0.0.14 2020-07-06 Updated API endpoint due to cert expiry/change of API from 'https://globalapi.sems.com.cn/api/'' to 'https://semsportal.com/api/' as the old one was throwing expired cert errors.
  • 0.0.16 2021-02-04 Included option from Peter Verthez to download an Excel file of data, cleaned up some old code style mess.
  • 0.0.17 2022-06-04 Fully typed, if a little janky, replaced flit packaging with poetry.

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

pygoodwe-0.0.17.tar.gz (10.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pygoodwe-0.0.17-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

pygoodwe-0.0.17-py2.py3-none-any.whl (8.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pygoodwe-0.0.17.tar.gz.

File metadata

  • Download URL: pygoodwe-0.0.17.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Darwin/21.5.0

File hashes

Hashes for pygoodwe-0.0.17.tar.gz
Algorithm Hash digest
SHA256 1810059d7f29542d3824f37768bdacac3f8ceac2219ec9d96a3a6334dabb9e65
MD5 7b89f2451b4c83100e7b66a7fa88ccfb
BLAKE2b-256 653ac5fd9ed22f13435052bd85440aab2015b4d54dfd9edce0650e1d2ee68159

See more details on using hashes here.

File details

Details for the file pygoodwe-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: pygoodwe-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Darwin/21.5.0

File hashes

Hashes for pygoodwe-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 ee3a663f8a2b57e71e58853e85b422fea231da1c739b8ea3409c8cb999def031
MD5 a65352572ab89c52f9202f3be2256382
BLAKE2b-256 7742bfd438729605bf52753d07d8dc227be8c39acb9dc2ed4aeb623eb030c207

See more details on using hashes here.

File details

Details for the file pygoodwe-0.0.17-py2.py3-none-any.whl.

File metadata

  • Download URL: pygoodwe-0.0.17-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Darwin/21.5.0

File hashes

Hashes for pygoodwe-0.0.17-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 166bed84ac2532352ea821a264f7d8bcc1bf9ff043d6f99cd72b975477a52ce3
MD5 df9e4e35489a5520f6a49b2bff22661e
BLAKE2b-256 e244710e144e8b449dc0d027e9666886a65d749606ebdcc79e37a4871f4fd308

See more details on using hashes here.

Supported by

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