azogue / aiopvpc

Simple aio library to download Spanish electricity hourly prices (PVPC) from esios.ree.es
MIT License
41 stars 10 forks source link

Change data source to apidatos.ree.es #39

Closed azogue closed 2 years ago

azogue commented 2 years ago

Motivated by recent successful attempts to kick us out from api.esios.ree.es, we are changing the data source to another server, at apidatos.ree.es.

👏 As suggested by @lazynoda in this comment, REE has another public and documented API (REData API) with the same information as the current one, available without authentication 👌, so it may deserve a chance 🤞.

This release implements the new data-source, but also maintains the legacy one.

🔥 BREAKING-CHANGE: this release removes support for the old PVPC tariffs (prices < 2021-06-01), and the extra methods to use this library as a dataloader (.download_prices_for_range(...)), leaving only the code to support the HA Core integration.

Changes: