docs: Session resume démo 9h00 - 7/7 services COMPLETE

This commit is contained in:
Eric FELIXINE
2026-05-05 17:37:25 -04:00
parent 204fdc31c7
commit 766bb0a179

View File

@@ -1,51 +1,58 @@
# Session Resume - 2026-05-06 (Demo Day!) # Session Resume - 2026-05-06 (Demo Day)
## Objectif ## 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) ## Services en cours (vérifies à 17h40)
| Service | Status | URL/Port | Notes | - ✅ OpenRemote : https://openremote.digitribe.fr (admin/Digitribe972)
|---------|--------|----------|-------| - ✅ InfluxDB : http://localhost:8086 (36,801+ points, bucket iot_data)
| OpenRemote Manager | ✅ UP (healthy) | https://openremote.digitribe.fr | MapSettings Martinique OK (HTTP 200) | - ✅ Grafana : http://localhost:3001 (admin/Digitribe972, dashboards OK)
| InfluxDB | ✅ UP (healthy) | localhost:8086 | Bucket `iot_data` - 1472 points/5min | - ✅ FROST Server : http://localhost:8090 (Things/Datastreams créés)
| Grafana | ✅ UP | http://localhost:3001 | Dashboards: Air Quality, Pulsar Metrics | - ✅ Stellio : https://stellio.digitribe.fr (NGSI-LD, HTTP 204)
| Simulator | ✅ Running | PID 1575645 | Orion-LD ✅, InfluxDB ✅, Pulsar disabled | - ✅ Redpanda : http://localhost:8082 (topics: air-quality, traffic, weather, etc.)
| Orion-LD | ✅ UP (healthy) | localhost:1026 | Context broker NGSI-LD | - ✅ Pulsar : localhost:6650 (volume reset, BookKeeper fixé)
| Traefik | ✅ UP | - | Routage OpenRemote OK (302→login) |
## Corrections effectuées cette nuit ## Simulateur
1. **OpenRemote MapSettings** : Déployé dans `/storage/manager/`, `/deployment/map/`, `/opt/map/` - PID : 2020948
2. **MBTiles metadata** : Bounds corrigés (`-83.0,9.0,-55.0,21.0`) - Log : `simulator_pulsar_success.log`
3. **Port 8080** : Libéré (arrêt Pulsar) + mappé `8080:8080` dans docker-compose.yml - Status : TOUS ✅ (FROST, InfluxDB, Stellio, Redpanda, Pulsar, Orion-LD)
4. **Traefik** : Config corrigée avec IP directe `172.29.0.11:8080` - Commande :
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)
```bash ```bash
# OpenRemote cd ~/smart-city-digital-twin-martinique && \
cd /home/eric/openremote && docker compose -f docker-compose.yml up -d ENABLE_INFLUX=true ENABLE_STELLIO=true ENABLE_REDPANDA=true ENABLE_PULSAR=true \
PULSAR_HOST=localhost REDPANDA_HOST=localhost REDPANDA_PORT=8082 \
# Simulator (sur l'hôte) STELLIO_URL=https://stellio.digitribe.fr \
cd ~/smart-city-digital-twin-martinique INFLUX_URL=http://localhost:8086 INFLUX_TOKEN=my-super-secret-admin-token INFLUX_ORG=digitribe \
ENABLE_INFLUX=true ENABLE_PULSAR=false INFLUX_URL=http://localhost:8086 python3 simulator.py & INTERVAL=1 python3 simulator.py 2>&1 | tee simulator_pulsar_success.log
# Vérification
curl -sk https://openremote.digitribe.fr/api/master/map | python3 -m json.tool | grep center
``` ```
## Infos critiques ## Corrections effectuées (Actions 1-174)
- **OpenRemote Admin** : admin / Digitribe972 1. OpenRemote : mapsettings.json Martinique, bounds, sources.vector_tiles
- **InfluxDB Token** : my-super-secret-admin-token 2. FROST : Port 8090 mappé sur localhost
- **Grafana** : admin / Digitribe972 3. Stellio : docker-compose.yml corrigé, démarré manuellement
- **Orion-LD** : http://localhost:1026 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 ## En cas de crash avant la démo
1. Ouvrir https://openremote.digitribe.fr → Login → Vérifier carte Martinique 1. `docker ps` (vérifier services)
2. Ouvrir http://localhost:3001 → Dashboard "Air Quality Monitoring" 2. `tail -20 simulator_pulsar_success.log | grep "✅"` (vérifier simulateur)
3. Vérifier que le simulateur tourne : `ps aux | grep simulator.py` 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 ## Git
- Commit: `81de240 fix: ENABLE_INFLUX bug` - Repo : https://gitea.digitribe.fr/eric/smart-city-digital-twin-martinique
- Push: En cours (problème auth à régler) - Branch : master (à jour)
- Repo: https://gitea.digitribe.fr/eric/smart-city-digital-twin-martinique - 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**