Eco-Megane Python Client
About
The Eco-Megane online platform provides monitoring data for photovoltaic systems. However, they do not offer an API or any convenient way of programmatically accessing the data. This client allows you to download certain data from the site using Python.
Installation
To install the client using pip:
pip install ecomegane
Getting Started
To begin downloading data, you will need to find your power plant's ID number on the Eco Megane site.
Example Usage
For a complete sample, see docs/sample.py.
Downloading hourly data
import datetime
from ecomegane import EcoMeganeClient
site_id = '00031234567'
today = datetime.date.today()
with EcoMeganeClient('username', 'password') as client:
kwh = client.get_hourly_kwh(site_id, today)
for timestamp, energy in kwh.items():
print(timestamp, energy)
Downloading daily data
import datetime
from ecomegane import EcoMeganeClient
site_id = '00031234567'
today = datetime.date.today()
with EcoMeganeClient('username', 'password') as client:
# Download daily data for the current month.
kwh = client.get_daily_kwh(site_id, today)
for timestamp, energy in kwh.items():
print(timestamp, energy)
Contributing
PRs are welcome. Feel free to fork the repo, make your changes, and submit a PR. It is recommended that you create an Issue before starting work on your features.
Metadata
Release files for ecomegane 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ecomegane-1.0.0.tar.gz | 3.4 kB | Without provenance | Details for ecomegane-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ecomegane-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for ecomegane-1.0.0-py3-none-any.whl |
Total release size: 8.0 kB
Release files / ecomegane-1.0.0.tar.gz
| Download URL | ecomegane-1.0.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84a7b89e95e93b1a93af7546a167e14928e293e19720381386b52b67b7638291
|
|
BLAKE2b-256 checksum How to use checksums |
78e1ce5ca160591f53093e75ede78edd0a15e4124ad2b3d4b0b66d0551fe4c13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.2 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / ecomegane-1.0.0-py3-none-any.whl
| Download URL | ecomegane-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f68d58db52e564b2367b9f49f06f8a2908c37bd811a0c9c55acf43c48da4475
|
|
BLAKE2b-256 checksum How to use checksums |
01ba1ac55846a8d783c9cf307d611a9f62898c6c97e6761266ebc08c0f3d9d5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.2 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Security for ecomegane 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.