Couleur bandeau gyro
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user