Skip to main content

Download data from Eco-Megane PV monitoring platform.

Project description

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.

Site ID

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.

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

ecomegane-1.0.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

ecomegane-1.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file ecomegane-1.0.0.tar.gz.

File metadata

  • Download URL: ecomegane-1.0.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for ecomegane-1.0.0.tar.gz
Algorithm Hash digest
SHA256 84a7b89e95e93b1a93af7546a167e14928e293e19720381386b52b67b7638291
MD5 b4c6fd78dc9dc44d849a24fd7ac50717
BLAKE2b-256 78e1ce5ca160591f53093e75ede78edd0a15e4124ad2b3d4b0b66d0551fe4c13

See more details on using hashes here.

File details

Details for the file ecomegane-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ecomegane-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for ecomegane-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f68d58db52e564b2367b9f49f06f8a2908c37bd811a0c9c55acf43c48da4475
MD5 95c3161a933fc69690e7fa860020755a
BLAKE2b-256 01ba1ac55846a8d783c9cf307d611a9f62898c6c97e6761266ebc08c0f3d9d5d

See more details on using hashes here.

Supported by

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