feat: Vigilance API officielle + tab 1 an + logo SVG + map à 5xl
Some checks are pending
Deploy info-canicule / deploy (push) Waiting to run
Some checks are pending
Deploy info-canicule / deploy (push) Waiting to run
1. lib/vigilance.ts : provider Météo France officielle via DPVigilance/v1
/cartevigilance/encours. Map vers VigilanceAlert (1 par dept × phen × J/J1)
en prenant phenomenon_max_color_id (pire de la journée). Filtre les domains
non-dept (FRA national, sub-côtes XX10, etc).
- Auto-pick : MF si key dispo, sinon opendatasoft. Override VIGILANCE_PROVIDER.
- Fallback opendatasoft si MF échoue (cache key différent pour pas polluer).
- Devrait fixer le lag de plusieurs heures observé sur Opendatasoft.
2. lib/climato.ts : fetch latest + previous (~4 MB compressé), garder 365j max
en cache 24h. Permet l'onglet "1 an" sur la page dept.
3. TemperatureChartInteractive : onglet "1 an" (apparaît si > 30j dispos),
série days365 + normales365 sérialisés au SSR.
4. Base.astro : logo header et footer utilisent <img src="/favicon.svg">
au lieu d'un emoji 🌡️.
5. index.astro : wrapper map repassé à container-tight (max-w-5xl) — la version
1400px était trop grande, on revient à la largeur du reste du site.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
cb8d111a12
commit
5f8b765d79
7 changed files with 189 additions and 63 deletions
|
|
@ -5,7 +5,9 @@ PUBLIC_SITE_URL=https://info-canicule.nocleus.com
|
|||
# Valkey shared infra — DB 0 (isolation par préfixe `info-canicule:*` via ACL)
|
||||
REDIS_URL=redis://info-canicule:{{ pass://Infra/Valkey — info-canicule/password }}@valkey:6379/0
|
||||
|
||||
VIGILANCE_PROVIDER=opendatasoft
|
||||
# Provider Vigilance : `meteofrance` (API officielle, frais) ou `opendatasoft` (no-auth, lag possible).
|
||||
# Vide = auto (MF si METEOFRANCE_API_KEY défini, sinon opendatasoft).
|
||||
VIGILANCE_PROVIDER=
|
||||
VIGILANCE_CACHE_TTL=900
|
||||
|
||||
# Umami analytics (RGPD, auto-hébergé — analytics.nocleus.com)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue