Bug in EDF Tempo integration?

Hello.

I think I’ve found a bug in the EDF Tempo integration: when I look at the EDF Tempo module on the Dashboard at 8:00, it displays a color for the next day, whereas that color is not yet known at EDF before 11:00. Here are the screenshots in Gladys from the EDF app:

![image|690x425](upload

Hi dear namesake ;),

I just checked with RTE and it says:

the only reference information regarding the color of Tempo-type days that is binding for RTE is the one published on J-1 (the day before) at 10:30 on this page. When the information available to it allows, RTE issues a pre-notification for purely informative purposes between 8:00 and 10:30. The pre-notified information does not predict the definitive information and does not bind RTE.

Then I think there was a problem with the APIs for retrieving TEMPO info and that the source/API changed.
I also saw that some sites displayed the J+1 color at 7:00, so I’m not too surprised by the change on Gladys. Have you seen any J+1 colors displayed incorrectly in Gladys?

No,

Hi,

Indeed I don’t think there’s any problem, we display in Gladys the raw value that comes from RTE :slight_smile:

If the data is displayed, it’s because the RTE API returns it.

The API returns data in this format:

{
	"tempo_like_calendars": {
		"start_date": "2024-09-02T00:00:00+02:00",
		"end_date": "2024-09-03T00:00:00+02:00",
		"values": [
			{
				"start_date": "2024-09-02T00:00:00+02:00",
				"end_date": "2024-09-03T00:00:00+02:00",
				"value": "BLUE",
				"updated_date": "2024-09-01T10:20:00+02:00"
			}
		]
	}
}

The code:

const { data: todayLiveData } = await axios.get(
  'https://digital.iservices.rte-france.com/open_api/tempo_like_supply_contract/v1/tempo_like_calendars',
  {
    params: {
      start_date: todayStartDate,
      end_date: tomorrowStartDate,
    },
    headers: {
      authorization: `Bearer ${accessToken}`,
    },
  },
);
todayData = todayLiveData.tempo_like_calendars.values[0].value.toLowerCase();
const { data: tomorrowLiveData } = await axios.get(
  'https://digital.iservices.rte-france.com/open_api/tempo_like_supply_contract/v1/tempo_like_calendars',
  {
    params: {
      start_date: tomorrowStartDate,
      end_date: tomorrowEndDate,
    },
    headers: {
      authorization: `Bearer ${accessToken}`,
    },
  },
);
tomorrowData = tomorrowLiveData.tempo_like_calendars.values[0].value.toLowerCase();

ok, thanks for the confirmation :+1: