Giter Site home page Giter Site logo

Comments (10)

Steve-Wax avatar Steve-Wax commented on August 28, 2024

There is a good chance that GoodWe is reporting bad data back to you. I have had issues with them in the past not having the total for a day available. That said, the code here has some problems with the --date option which I put in a pull request to correct. See issue #14 and #23 and pull request #25. You may want checkout my fork if you would like to use the --date option regularly. I believe I have it working well now. https://github.com/Steve-Wax/gw2pvo

from gw2pvo.

markruys avatar markruys commented on August 28, 2024

Should be fixed by 4b97b7a, can you please confirm?

from gw2pvo.

tsbkelly avatar tsbkelly commented on August 28, 2024

Doesn't appear to be, unfortunately - getting this error:

WARNING HTTPSConnectionPool(host='semsportal.com', port=443): Read timed out. (read timeout=10) ERROR Failed to call GoodWe API WARNING 2020-06-11 - Received bad data {}

from gw2pvo.

markruys avatar markruys commented on August 28, 2024

@tsbkelly, just to be sure, did you install the commit 4b97b7a? I've just released it as a new package:

pip3 install https://github.com/markruys/gw2pvo/releases/download/1.3.1/gw2pvo-1.3.1-py3-none-any.whl

from gw2pvo.

tsbkelly avatar tsbkelly commented on August 28, 2024

I hadn't, no, but I'm now getting this error:

Traceback (most recent call last): File "/usr/local/bin/gw2pvo", line 6, in <module> from gw2pvo.__main__ import run File "/usr/local/lib/python3.7/dist-packages/gw2pvo/__main__.py", line 9, in <module> from astral import LocationInfo ImportError: cannot import name 'LocationInfo' from 'astral' (/usr/local/lib/python3.7/dist-packages/astral.py)

When run as a service, systemctl reports:

● gw2pvo.service - Read GoodWe inverter and upload data to PVOutput.org Loaded: loaded (/etc/systemd/system/gw2pvo.service; enabled; vendor preset: e Active: activating (auto-restart) (Result: exit-code) since Sun 2020-06-28 19 Process: 21018 ExecStart=/usr/local/bin/gw2pvo --gw-station-id ****** Main PID: 21018 (code=exited, status=1/FAILURE)

from gw2pvo.

markruys avatar markruys commented on August 28, 2024

What does /usr/local/bin/gw2pvo --version say?

It looks like you're using the wrong Astral package. You might try to reinstall using sudo:

sudo pip3 install https://github.com/markruys/gw2pvo/releases/download/1.3.2/gw2pvo-1.3.2-py3-none-any.whl

Note I've fixed another issue in the just release 1.3.2 wrt --date.

from gw2pvo.

tsbkelly avatar tsbkelly commented on August 28, 2024

/usr/local/bin/gw2pvo --version says gw2pvo 1.3.0

I probably do have the wrong Astral version - when I first installed the package it failed due to not being able to import Astral from astral - downgraded to a previous Astral package following someone's suggestion, and it worked. I'll try installing 1.3.2 and see if it works.

from gw2pvo.

markruys avatar markruys commented on August 28, 2024

Okay, I've updated the installer to enforce Astral 2. Can you please try:

sudo pip3 install https://github.com/markruys/gw2pvo/releases/download/1.3.3/gw2pvo-1.3.3-py3-none-any.whl

from gw2pvo.

tsbkelly avatar tsbkelly commented on August 28, 2024

That's solved the import Astral from astral problem - now running as a service properly, but running with the --date option produces this error:

WARNING 400 Client Error: Bad Request for url: https://pvoutput.org/service/r2/addbatchstatus.jsp ERROR Failed to call PVOutput API

from gw2pvo.

markruys avatar markruys commented on August 28, 2024

Well, this is actually a completely different issue. This part of the source code hasn't been changed for some time. Could you please create a new ticket and add the console output when you call it with --log debug? FYI, I can't reproduce the problem yet.

from gw2pvo.

Related Issues (20)

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.