/energinet-eloverblik

Python wrapper for the Energinet Eloverblik.dk API

Primary LanguagePythonMIT LicenseMIT

python-eloverblik Test MIT License

A Python wrapper for the Eloverblik.dk API.

Installation

Make sure setuptools is installed. Clone the repository and navigate to the root of the project. Install the package using pip:

pip install .

Usage

from eloverblik import CustomerAPI
from datetime import datetime, timedelta

REFRESH_TOKEN = "..."
api = CustomerAPI(REFRESH_TOKEN)

meters = api.get_metering_points()
meter_id = meters[0]["meteringPointId"]

data = api.get_time_series(
    [meter_id],
    datetime.now()-timedelta(days=28),
    datetime.now(),
    "hour"
)

df = data[0].series[0].to_pandas()