16.06.2021, 19:01
Hello
I have continued investigating and with some changes.
In the URL I have put a filter so that it only shows the data of mainland Spain, in this way the rest of the territories are not shown.
Although the registry remains at the value [23] ... without showing it, the data is and agrees with the values shown by the ESIOS on its website.
This makes me think that the registry in Wiser has a limit when it comes to representing the data, even if they exist, is this for something in particular?
So the questions in the previous post have answered themselves.
1. The two strings are concatenated without problems.
2. the long name still does not appear but the rest of the data is after the ... shown in the registry.
Now I have a new problem, it is assumed that ESIOS updates its data at around 8:16 p.m. every day, on its website the tariff values are already displayed from 00 today 16 until 00 tomorrow 17.
But the API call returns the values of 16 and not 17, I understand that this will be up to the API and not the script.
However, I think that it would be necessary to include a mechanism that ensures that the data has been updated using the values_updated_at field.
Greetings.
P.S. I leave the previous post unchanged in case it is useful to someone.
I have continued investigating and with some changes.
In the URL I have put a filter so that it only shows the data of mainland Spain, in this way the rest of the territories are not shown.
Code:
curl "https://api.esios.ree.es/indicators/1001?&geo_ids[]=8741" -X GET \
-H "Accept: application/json; application/vnd.esios-api-v1+json" \
-H "Content-Type: application/json" \
-H "Host: api.esios.ree.es" \
-H "Authorization: Token token=\"TOKEN ESIOS\"" \
-H "Cookie: "\
Although the registry remains at the value [23] ... without showing it, the data is and agrees with the values shown by the ESIOS on its website.
This makes me think that the registry in Wiser has a limit when it comes to representing the data, even if they exist, is this for something in particular?
So the questions in the previous post have answered themselves.
1. The two strings are concatenated without problems.
2. the long name still does not appear but the rest of the data is after the ... shown in the registry.
Now I have a new problem, it is assumed that ESIOS updates its data at around 8:16 p.m. every day, on its website the tariff values are already displayed from 00 today 16 until 00 tomorrow 17.
But the API call returns the values of 16 and not 17, I understand that this will be up to the API and not the script.
However, I think that it would be necessary to include a mechanism that ensures that the data has been updated using the values_updated_at field.
Greetings.
P.S. I leave the previous post unchanged in case it is useful to someone.