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

Fix Coned: GetOpowerToken now requires Referer header #48

Closed rvsit closed 8 months ago

rvsit commented 8 months 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