A Python wrapper for the Eloverblik.dk API.
Make sure setuptools is installed. Clone the repository and navigate to the root of the project. Install the package using pip:
pip install .
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()