Couleur bandeau gyro

This commit is contained in:
2025-12-12 13:06:23 +01:00
parent 37a00a64b5
commit 0c3457f30a

View File

@@ -79,11 +79,11 @@ def render_gyro_badge(site: str, stale_after_min: int = 10):
# Etat → couleur/label
if etat in ("ON", "1"):
color, label = "#22c55e", "GYRO ON"
color, label = "#ef4444", "GYRO ON" # Rouge = gyro actif
elif etat in ("OFF", "0"):
color, label = "#ef4444", "GYRO OFF"
color, label = "#22c55e", "GYRO OFF" # Vert = gyro arrêté
elif etat in ("ALERTE", "ALARM", "ALARMED"):
color, label = "#f59e0b", "GYRO ALERTE"
color, label = "#f59e0b", "GYRO ALERTE" # Orange = alerte
else:
color, label = "#9E9E9E", "GYRO INCONNU"