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
53 stars 49 forks source link

New Provider: SMUD #54

Closed andylittle closed 4 months ago

andylittle commented 8 months 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 8 months ago

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