-
Notifications
You must be signed in to change notification settings - Fork 61
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
More verbose options #76
Conversation
P.S. There are some issues with the opower file and git. I am checking it. It could be a line-ending issue... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks! I manually diffed opower.py. Once you fix the diff I can merge. Feel free to start over in a new PR.
README.md
Outdated
@@ -80,8 +80,8 @@ pytest | |||
|
|||
# Run demo | |||
python src/demo.py --help | |||
# To output debug logs to a file, change DEBUG_LOG_RESPONSE to True in opower.py and run: | |||
python src/demo.py --verbose 2> out.txt | |||
# To output debug logs to a file run: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# To output debug logs and API responses to a file run:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated. I fixed diff and also updated logging for smud provider
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* first try at adding smud * login sucessful unable to parse opower token * not yet working, token is in history * proof of concept getsokta token this works as far as getting the token * SMUD, tested. * @v-yarotsky code review changes * Fix redirects logging Was previously showing the requested URL and the redirect and stating there were two redirects (where there was two requests) * Ignore `.env.secret` * Add pytest to optional dependencies * use `len()` * If we already have a cookie, return early if it is valid. * 0.4.0 * Update __init__.py src/opower/__init__.py:5:5: F401 [*] `.opower.DEBUG_LOG_RESPONSE` imported but unused * Update test_smud.py * Set types for mypy * Use Optional[str] * Update README.md * Update smud.py * Update `-vv` changes from #76 * Delete cookies if they don't work. * Update smud.py * Update smud.py --------- Co-authored-by: andylittle <[email protected]> Co-authored-by: tronikos <[email protected]>
@tronikos What do you think about this? It's a little bit ugly, but I don't have any better ideas for now. Maybe adding more constants for the
-v
and-vv
options?