Jour Tempo – Daily colour for EDF Tempo

Description

Jour Tempo is an independent website (jourtempo.fr). This plugin is not made, endorsed or supported by EDF or RTE; “Tempo” is the name of EDF’s electricity option and is used here only to say which option the colours are for.

French households on the EDF Tempo option (and similar offers from other suppliers) pay a different price depending on the colour of the day: blue, white or red. RTE, the French transmission system operator, announces tomorrow’s colour every day.

This plugin shows today’s and tomorrow’s colour, with the date and, if you wish, the red and white days left in the season. It is useful for town halls, associations, local news sites, energy advisers, electricians or any site whose readers want to know whether tomorrow is a red day.

  • Shortcode: [jour_tempo]. Options: demain="non" to hide tomorrow, theme="sombre" for a dark version.
  • Classic widget: “Tempo colour (Jour Tempo)”.
  • No account, no API key, no tracking, no cookie, no JavaScript on your pages.
  • Data cached on your server until the next announcement (a few calls per day at most).
  • Optional credit link to jourtempo.fr, off by default (Settings > Jour Tempo).

Interface in English, ready for translation on translate.wordpress.org.

External service

This plugin gets the colours from the free Jour Tempo API: https://jourtempo.fr/api/v1/tempo.json (documentation). Your server calls this address at most once per announcement period to refresh the cache; your visitors’ browsers never call it. No personal data and no information about your visitors is sent: only a standard HTTP request from your server.

The colours are published by RTE (API “Tempo Like Supply Contract”, https://data.rte-france.com), which allows reuse provided the source is credited: the widget always shows “Source: RTE”.

Screenshots

Installation

  1. Install and activate the plugin.
  2. Add the shortcode [jour_tempo] to a page or post (Shortcode block), or add the “Tempo colour (Jour Tempo)” widget.
  3. Optional: Settings > Jour Tempo to show the days left or the credit link.

FAQ

When does tomorrow’s colour appear?

RTE usually announces it in the late morning (around 10:30, Paris time). Before that, the widget shows “Not announced yet” for tomorrow.

What happens if the API cannot be reached?

The widget keeps showing the last colours it received.

Does the plugin add a link to my site?

Only if you tick “Credit link” in Settings > Jour Tempo. It is off by default.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Jour Tempo – Daily colour for EDF Tempo” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.1

  • New display name making clear the plugin is not affiliated with EDF.
  • Translations now come from translate.wordpress.org.

1.0.0

  • First version: shortcode, widget, settings page, French translation.