tronikos / opower

A Python library for getting historical and forecasted usage/cost from utilities that use opower.com such as PG&E
Apache License 2.0
66 stars 59 forks source link

New Provider: SMUD #54

Closed andylittle closed 9 months ago

andylittle commented 1 year ago

I have the login to the SMUD page working. After opening the link to energy usage, a series of redirects occur. By setting allow_redirects=True, I am able to regex the token from the redirect history. Is this the correct way to handle getting the token from the redirects or am I missing a concept here?

tronikos commented 1 year ago

Every utility seems to have its own way getting the token. Whatever works for your utility.