Résumé final session 2026-05-06 - 60 assets MQTT créés

This commit is contained in:
Eric FELIXINE
2026-05-06 22:48:46 -04:00
parent 67ac37545e
commit 227a799e94

View File

@@ -1,31 +1,37 @@
# Session Resume - 2026-05-06 - FINAL
## Réalisations clés
## Réalisations clés (session complète)
1. **60 assets OpenRemote créés** (30 master + 30 smartcity)
2. **Type corrigé** : `urn:openremote:agent:mqtt` (pour connexion MQTT)
3. **Géolocalisation** : Coordonnées Martinique (Fort-de-France, Le Robert, etc.)
4. **Liens MQTT** : Topics configurés (`smartcity-master/*`, `smartcity-smartcity/*`)
5. **Redémarrage OpenRemote** effectué
2. **Type corrigé** : `urn:openremote:agent:mqtt` (MQTT Agent)
3. **Répartition** : 10 Mosquitto + 10 EMQX + 10 BunkerM par realm
4. **Géolocalisation** : Martinique (coordonnées aléatoires)
5. **Liens MQTT** : Topics `smartcity-{realm}/{broker}/{id}`, Brokers configurés
6. **Mapsettings** : `/opt/map/mapsettings.json` (centre Martinique)
7. **Git** : 3 commits poussés (resume, rapport, assets)
## Problèmes résolus
- Authentification Keycloak (audience mapper)
- Assets non visibles sur carte (parent_id lié aux racines de realm)
- Authentification Keycloak (audience mapper 'openremote')
- Assets non visibles sur carte (parent_id lié aux racines)
- Format location GeoJSON corrigé
## Reste à faire
- Vérifier affichage carte (2 realms dans légende)
- Vérifier affichage 2 realms dans légende carte OpenRemote
- Configurer simulateur SENSOR_COUNT=30
- Stabiliser services unhealthy (CrateDB-Stellio, MongoDB, etc.)
- ThingsBoard (config manquante)
- Stabiliser services unhealthy (CrateDB-Stellio, Mosquitto, MongoDB, Pulsar, BunkerM)
- ThingsBoard (config manquante, conteneur Restart Loop)
## Commandes utiles
```bash
# Voir assets OpenRemote
docker exec openremote_postgresql_1 psql -U postgres -d openremote -c "SELECT id, name, realm FROM openremote.asset WHERE type='urn:openremote:agent:mqtt' LIMIT 5;"
docker exec openremote_postgresql_1 psql -U postgres -d openremote -c "SELECT realm, COUNT(*) FROM openremote.asset WHERE type='urn:openremote:agent:mqtt' GROUP BY realm;"
# Redémarrer si besoin
docker restart openremote-manager-1
# Redémarrer OpenRemote si besoin
docker restart openremote_manager_1 openremote_keycloak_1
# Vérifier map
# Vérifier carte
open https://openremote.digitribe.fr/manager/#/assets
# Configurer simulateur 30 capteurs
cd ~/smart-city-digital-twin-martinique
SENSOR_COUNT=30 docker compose up -d simulator
```