piekstra / portlandgeneral-api

An unofficial Python library for requesting data from the Portland General Electric (PGE) API.
GNU General Public License v3.0
11 stars 2 forks source link

api documentation #3

Closed craftyguy closed 2 years ago

craftyguy commented 2 years ago

hi, I was looking to create something like this myself... and found your project! I'm curious if you found any public documentation for the API? Portland General seems to support hourly usage reporting (at least I can see this when I log in and view the dashboard on their site..), and so I'd like to work towards using this for a Home Assistant integration that can track energy.

piekstra commented 2 years ago

@craftyguy hi!

I did find out how to access their hourly utility usage and cost data, and have some work locally on adding that capability to this library. I got sidetracked with other things but can put in some extra effort towards adding that if you're interested!

craftyguy commented 2 years ago

nice, ya I'm interested in that!

piekstra commented 2 years ago

@craftyguy I've put up a WIP pull request that can get you started with some local experimentation. I'll be updating the PR when I can to be a full version.

https://github.com/piekstra/portlandgeneral-api/pull/5

piekstra commented 2 years ago

The power usage and cost features among others are now available with https://github.com/piekstra/portlandgeneral-api/releases/tag/v1.1.0

craftyguy commented 2 years ago

thank you so much! \o/