Git Product home page Git Product logo

pygoodwe's Introduction

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.

Variations in this fork

the main reason I made this fork is to replace python3 f-strings to normal strings, as my Rasberry Pi uses python 3.5.3 (f-strings are introduced in 3.6...)

pygoodwe's People

Contributors

yaleman avatar dependabot-preview[bot] avatar dependabot[bot] avatar verthezp avatar bp-ouhaha avatar jb1985 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.