Skip to main content

A python library for downloading your historical data fromutilities that use Bidgely

Project description

Bidgely

A Python library for getting historical and forecasted usage/cost from utilities that use Bidgely such as Hydro Ottawa.

Supported utilities:

  • Hydro Ottawa
  • Avista

Possible Supports:

  • BC Hydro
  • NS Power
  • Hydro One
  • Public Service Electric and Gas (PSE&G)

More here

Support a new utility

To add support for a new utility that uses the Bidgely API (you can tell if the energy dashboard of your utility makes network requests to a *.bidgely.com host in the network tab of your browser's developer tools -- naapi-read.bidgely.com for Hydro Ottawa, avista-prodapi.bidgely.com for Avista) add a file similar to hydroottawa.py

Name the file after the utility , e.g. hydroottawa.py for Hydro Ottawa or bchydro.py for BC Hydro.

Since this library is planned to be used by Home Assistant, then per https://github.com/home-assistant/architecture/blob/master/adr/0004-webscraping.md we cannot have a dependency on a headless browser and we can only parse HTML during login.

An exception is made for the authentication phase. An integration is allowed to extract fields from forms. To make it more robust, data should not be gathered by scraping individual fields but instead scrape all fields at once.

Example

See demo.py

Thank you

Inspired by opower by @tronikos

Async pycognito sign in from @dotKrad

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bidgely_avista-0.2.0.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bidgely_avista-0.2.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file bidgely_avista-0.2.0.tar.gz.

File metadata

  • Download URL: bidgely_avista-0.2.0.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.13.7 Darwin/25.5.0

File hashes

Hashes for bidgely_avista-0.2.0.tar.gz
Algorithm Hash digest
SHA256 73235edeeba324a43908676acd7d877f33d8254c6a7d9bc5dc1eb28a36fcf7c9
MD5 3a5dedd4d1bab433f333886c83bf26cf
BLAKE2b-256 9b9cc7171bced7cbc609552ca09a0d8a54c461db7b0ffee395803112ccc645a1

See more details on using hashes here.

File details

Details for the file bidgely_avista-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: bidgely_avista-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.13.7 Darwin/25.5.0

File hashes

Hashes for bidgely_avista-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a1d5a31a3d9ea153a3c011b04096d62a402dce67d8c67d63ba9931b176e4790
MD5 a74982443e2c7db8c66e6242a8ee097f
BLAKE2b-256 f34d23acfa13529604f7d7f1268bcd62811b025a9eb7446cdde90377e42d8f07

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page