-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling with --date fails with KeyError: 0 #41
Comments
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 |
Should be fixed by 4b97b7a, can you please confirm? |
Doesn't appear to be, unfortunately - getting this error:
|
I hadn't, no, but I'm now getting this error:
When run as a service, systemctl reports:
|
What does It looks like you're using the wrong Astral package. You might try to reinstall using
Note I've fixed another issue in the just release 1.3.2 wrt |
I probably do have the wrong Astral version - when I first installed the package it failed due to not being able to |
Okay, I've updated the installer to enforce Astral 2. Can you please try:
|
That's solved the
|
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 |
Calling gw2pvo with --date 2020-06-17 (for example) fails as follows:
ERROR Failed to call GoodWe API Traceback (most recent call last): File "/usr/local/bin/gw2pvo", line 10, in <module> sys.exit(run()) File "/usr/local/lib/python3.7/dist-packages/gw2pvo/__main__.py", line 116, in run copy(args) File "/usr/local/lib/python3.7/dist-packages/gw2pvo/__main__.py", line 74, in copy data = gw.getDayReadings(date) File "/usr/local/lib/python3.7/dist-packages/gw2pvo/gw_api.py", line 75, in getDayReadings eday_kwh = data[0]['p'] KeyError: 0
The text was updated successfully, but these errors were encountered: