Change data source to apidatos.ree.es #39
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivated by recent successful attempts to kick us out from
api.esios.ree.es
, we are changing the data source to another server, atapidatos.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.
data_source
parameter, with the new source as default.🔥 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:
🔥 Remove support for old PVPC tariffs and range download methods,
and make
tariff
andwebsession
required arguments✨ Add alternative data-source from 'apidatos.ree.es'
apidatos.ree.es
, using endpoint at/es/datos/mercados/precios-mercados-tiempo-real
data_source
parameter with valid keys 'apidatos' and 'esios_public', setting the new one as default ;-).attribution
property, as a function of the data-source🚚 Change test patterns to new tariffs by substituting old examples in DST days from 2019 to equivalent days since 2021-06, using the new tariff keys
🚚 Add test patterns from new data-source, and adjust tests