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
65 stars 59 forks source link

Fix Coned: GetOpowerToken now requires Referer header #48

Closed rvsit closed 1 year ago

rvsit commented 1 year ago

See https://github.com/tronikos/opower/issues/47 I did some testing on the headers and it seems that next to the Cookie header the Referer header also needs to be present. If it is not it will give a 500 error.

Specifically Referer: https://www.coned.com/ which is already used in the code above, so I reused that and tested