Deliver Temperature in the mockups, with its site figure and guide

Temperature joins the mockups' list of domains (D-041): a Red
notification on the support Home, and a one-line block on the client
view ("Hottest (24 h) 43 °C · limit 97.5 °C") for the stations that
measure the GPU. src/temperature/final.py writes the site figure; the
comparison page reuses its panel. Short two-layer guide in
docs/temperature/guide/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-10-13 16:11:21 +02:00
1 parent 276c34ea38
commit 27c52bac75
9 files changed
+200 -43

No files matched your search

+3 -2
View File
@@ -1,6 +1,6 @@
"""Maquette côté support « Home » : page d'accueil du site de monitoring (toutes les stations), avec en haut une section
Status. Elle porte une notification par station et par domaine dont le dernier jour de la fenêtre est Orange ou Red
(src/<domaine>/day_color.py : Energy, Storage, Cellular ; D-025, D-030).
(src/<domaine>/day_color.py : Energy, Storage, Cellular, Temperature ; D-025, D-030).
La notification, comme la vignette de la station, mène à la vue client de la station (son menu principal) :
out/maquette_user_<STATION>.html, écrite par maquettes/user/summary.py (à lancer avec les mêmes dates).
@@ -20,6 +20,7 @@ from common.stations import load_stations # noqa: E402
from cellular import day_color as cellular # noqa: E402
from energy import day_color as energy # noqa: E402
from storage import day_color as storage # noqa: E402
from temperature import day_color as temperature # noqa: E402
START = date.fromisoformat(sys.argv[1]) if len(sys.argv) > 1 else date(2026, 9, 18)
END = date.fromisoformat(sys.argv[2]) if len(sys.argv) > 2 else date(2026, 9, 28)
@@ -30,7 +31,7 @@ STATIONS = ["ALLALINHORN", "BREITHORN", "CASTOR", "CLARIDEN", "DOM", "FINSTERAAR
"PIZBERNINA", "PIZBUIN", "POLLUX", "RINGELSPITZ", "VERMONT", "WEISSHORN", "ADULA", "ALASKA", "DAMMASTOCK",
"FAULHORN", "GRANDCOMBIN", "MARYLAND", "MONTANA", "NADELHORN", "PONT_TREMBLEX-01", "SNCF01", "WILDSTRUBEL",
"WYOMING"]
DOMAINS = {"Energy": energy, "Storage": storage, "Cellular": cellular} # contrat de notification (D-030)
DOMAINS = {"Energy": energy, "Storage": storage, "Cellular": cellular, "Temperature": temperature} # contrat de notification (D-030)
NAME = {"RED": "Red", "ORANGE": "Orange"} # couleurs notifiées, la plus grave d'abord ; Green ne notifie rien
series = load_stations([str(d) for d in sorted((ROOT / "data").iterdir()) if d.is_dir()])