Bidgely
A Python library for getting historical and forecasted usage/cost from utilities that use Bidgely such as Hydro Ottawa.
Supported utilities:
- Hydro Ottawa
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 NA API (you can tell if the energy dashboard of your utility makes network requests to naapi-read.bidgely.com in the network tab of your browser's developer tools) 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
Release files for bidgely 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bidgely-0.1.5.tar.gz | 14.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bidgely-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.5 kB
Release files / bidgely-0.1.5.tar.gz
| Download URL | bidgely-0.1.5.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b08b0d110631d2956758427205d3dc3ed3670f9f5904b54e78074bee80ec5fa
|
|
BLAKE2b-256 checksum How to use checksums |
739079a55c0030ba1f956a7a9a08d640729a736f7a5ee137163660b1826a2c1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.5 Linux/5.15.0-1041-azure
|
Release files / bidgely-0.1.5-py3-none-any.whl
| Download URL | bidgely-0.1.5-py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0a6272b7a452baa18221805db746203dc8e8fec803f6188d8666d01426588a0
|
|
BLAKE2b-256 checksum How to use checksums |
e9b69eec5c3d01da35ba9ff5bd13c72d4ad76de0a6acaa080714136d7bf9f754
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.5 Linux/5.15.0-1041-azure
|