From 766bb0a1794d03da4242022fa90470652cb5156b Mon Sep 17 00:00:00 2001 From: Eric FELIXINE Date: Tue, 5 May 2026 17:37:25 -0400 Subject: [PATCH] =?UTF-8?q?docs:=20Session=20resume=20d=C3=A9mo=209h00=20-?= =?UTF-8?q?=207/7=20services=20=E2=9C=85=20COMPLETE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- session_resume_2026-05-06.md | 91 +++++++++++++++++++----------------- 1 file changed, 49 insertions(+), 42 deletions(-) diff --git a/session_resume_2026-05-06.md b/session_resume_2026-05-06.md index a2878c53..f1f1073e 100644 --- a/session_resume_2026-05-06.md +++ b/session_resume_2026-05-06.md @@ -1,51 +1,58 @@ -# Session Resume - 2026-05-06 (Demo Day!) +# Session Resume - 2026-05-06 (Demo Day) ## Objectif -Démo du Smart City Digital Twin Martinique à 9h00. Tout doit être fonctionnel. +Démonstration Smart City Digital Twin Martinique à 09h00. +Status : ✅ TOUT CORRIGÉ (7/7 services opérationnels) -## État des services (06h30) -| Service | Status | URL/Port | Notes | -|---------|--------|----------|-------| -| OpenRemote Manager | ✅ UP (healthy) | https://openremote.digitribe.fr | MapSettings Martinique OK (HTTP 200) | -| InfluxDB | ✅ UP (healthy) | localhost:8086 | Bucket `iot_data` - 1472 points/5min | -| Grafana | ✅ UP | http://localhost:3001 | Dashboards: Air Quality, Pulsar Metrics | -| Simulator | ✅ Running | PID 1575645 | Orion-LD ✅, InfluxDB ✅, Pulsar disabled | -| Orion-LD | ✅ UP (healthy) | localhost:1026 | Context broker NGSI-LD | -| Traefik | ✅ UP | - | Routage OpenRemote OK (302→login) | +## Services en cours (vérifies à 17h40) +- ✅ OpenRemote : https://openremote.digitribe.fr (admin/Digitribe972) +- ✅ InfluxDB : http://localhost:8086 (36,801+ points, bucket iot_data) +- ✅ Grafana : http://localhost:3001 (admin/Digitribe972, dashboards OK) +- ✅ FROST Server : http://localhost:8090 (Things/Datastreams créés) +- ✅ Stellio : https://stellio.digitribe.fr (NGSI-LD, HTTP 204) +- ✅ Redpanda : http://localhost:8082 (topics: air-quality, traffic, weather, etc.) +- ✅ Pulsar : localhost:6650 (volume reset, BookKeeper fixé) -## Corrections effectuées cette nuit -1. **OpenRemote MapSettings** : Déployé dans `/storage/manager/`, `/deployment/map/`, `/opt/map/` -2. **MBTiles metadata** : Bounds corrigés (`-83.0,9.0,-55.0,21.0`) -3. **Port 8080** : Libéré (arrêt Pulsar) + mappé `8080:8080` dans docker-compose.yml -4. **Traefik** : Config corrigée avec IP directe `172.29.0.11:8080` -5. **InfluxDB Bug** : `ENABLE_INFLUX=true` maintenant reconnu (patch commité) -6. **Git** : Commit local fait, push en cours de fix - -## Commandes de démarrage (si redémarrage nécessaire) +## Simulateur +- PID : 2020948 +- Log : `simulator_pulsar_success.log` +- Status : TOUS ✅ (FROST, InfluxDB, Stellio, Redpanda, Pulsar, Orion-LD) +- Commande : ```bash -# OpenRemote -cd /home/eric/openremote && docker compose -f docker-compose.yml up -d - -# Simulator (sur l'hôte) -cd ~/smart-city-digital-twin-martinique -ENABLE_INFLUX=true ENABLE_PULSAR=false INFLUX_URL=http://localhost:8086 python3 simulator.py & - -# Vérification -curl -sk https://openremote.digitribe.fr/api/master/map | python3 -m json.tool | grep center +cd ~/smart-city-digital-twin-martinique && \ +ENABLE_INFLUX=true ENABLE_STELLIO=true ENABLE_REDPANDA=true ENABLE_PULSAR=true \ +PULSAR_HOST=localhost REDPANDA_HOST=localhost REDPANDA_PORT=8082 \ +STELLIO_URL=https://stellio.digitribe.fr \ +INFLUX_URL=http://localhost:8086 INFLUX_TOKEN=my-super-secret-admin-token INFLUX_ORG=digitribe \ +INTERVAL=1 python3 simulator.py 2>&1 | tee simulator_pulsar_success.log ``` -## Infos critiques -- **OpenRemote Admin** : admin / Digitribe972 -- **InfluxDB Token** : my-super-secret-admin-token -- **Grafana** : admin / Digitribe972 -- **Orion-LD** : http://localhost:1026 +## Corrections effectuées (Actions 1-174) +1. OpenRemote : mapsettings.json Martinique, bounds, sources.vector_tiles +2. FROST : Port 8090 mappé sur localhost +3. Stellio : docker-compose.yml corrigé, démarré manuellement +4. Redpanda : Topics créés via rpk, content-type corrigé, port 8082 mappé +5. Pulsar : Volume reset (/pulsar/data), BookKeeper fixé, port 6650 mappé +6. Bugs simulateur : ENABLE_INFLUX/STELLIO/REDPANDA=true (lowercase), content-type Redpanda -## À vérifier avant 9h00 -1. Ouvrir https://openremote.digitribe.fr → Login → Vérifier carte Martinique -2. Ouvrir http://localhost:3001 → Dashboard "Air Quality Monitoring" -3. Vérifier que le simulateur tourne : `ps aux | grep simulator.py` +## En cas de crash avant la démo +1. `docker ps` (vérifier services) +2. `tail -20 simulator_pulsar_success.log | grep "✅"` (vérifier simulateur) +3. Si Pulsar down : `cd ~/smart-city-digital-twin-martinique/pulsar && docker compose up -d` +4. Si simulateur down : relancer commande ci-dessus -## Git Status -- Commit: `81de240 fix: ENABLE_INFLUX bug` -- Push: En cours (problème auth à régler) -- Repo: https://gitea.digitribe.fr/eric/smart-city-digital-twin-martinique +## Git +- Repo : https://gitea.digitribe.fr/eric/smart-city-digital-twin-martinique +- Branch : master (à jour) +- Dernier commit : "feat: PULSAR FIXED - All 7 services ✅" + +## Checklist Démo 9h00 +```bash +1. Ouvrir https://openremote.digitribe.fr → Login admin/Digitribe972 +2. Vérifier carte Martinique interactive +3. Ouvrir http://localhost:3001 → Dashboard 'Air Quality Monitoring' +4. Confirmer graphiques actifs (InfluxDB + FROST) +5. Vérifier Stellio : https://stellio.digitribe.fr +``` + +✅ **OBJECTIF ATTEINT : "Il faut que tout soit corrigé d'ici ce soir" = 100% COMPLETE**