Skip to content
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

Merged
merged 2 commits into from
Apr 1, 2024
Merged

More verbose options #76

merged 2 commits into from
Apr 1, 2024

Conversation

max2697
Copy link
Contributor

@max2697 max2697 commented Mar 31, 2024

@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?

@max2697
Copy link
Contributor Author

max2697 commented Mar 31, 2024

P.S. There are some issues with the opower file and git. I am checking it. It could be a line-ending issue...

Copy link
Owner

@tronikos tronikos left a 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:
Copy link
Owner

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:

Copy link
Contributor Author

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

Copy link
Owner

@tronikos tronikos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tronikos tronikos merged commit 269fa87 into tronikos:main Apr 1, 2024
4 checks passed
BrianHenryIE added a commit to BrianHenryIE/opower-smud that referenced this pull request Apr 3, 2024
tronikos added a commit that referenced this pull request Apr 3, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants