EcoWatt is an API which gives the state of the french power grid for the current day and the following three days.

The following tutorial will allow you to get the following schedule.

Implementation:

Each Execution will remove the previous special events and recreate them. Be careful as the API only allows you to make one request every 15minutes