Skip to content
forked from azogue/aiopvpc

Simple aio library to download Spanish electricity hourly prices (PVPC) from esios.ree.es

License

Notifications You must be signed in to change notification settings

r-jordan/aiopvpc

 
 

Repository files navigation

PyPI Version pre-commit.ci Status Build Status Code Coverage

aiopvpc

Simple aio library to download Spanish electricity hourly prices.

Made to support the pvpc_hourly_pricing HomeAssistant integration.

Buy Me A Coffee donate button

Install

Install with pip install aiopvpc or clone it to run tests or anything else.

Usage

import aiohttp
from datetime import datetime
from aiopvpc import PVPCData

async with aiohttp.ClientSession() as session:
    pvpc_handler = PVPCData(session=session, tariff="2.0TD")
    prices: dict = await pvpc_handler.async_update_prices(datetime.utcnow())
print(prices)

About

Simple aio library to download Spanish electricity hourly prices (PVPC) from esios.ree.es

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%