sbrinkerhoff/greenmountainpower

API Temperature?

Opened this issue · 5 comments

Can you get the temperature during usage as well?

Also, where did you get the API info, I've been trying to get it from GMP to no avail

Thanks
Carlos

in api.py, add "temp": 'f' to the get request in the "get_usage" definition (first screenshot). Then in the usage class add additional variable placeholders for the response values you are looking for (second screenshot).

To find the API info, simply log into the Green Mountain Power website with your credentials and inspect the network traffic (press F12) as the page loads. It will show you all the response values etc.

Screenshot 2023-06-02 144735
Screenshot 2023-06-02 145318