38 lines
1.5 KiB
Markdown
38 lines
1.5 KiB
Markdown
# Session Resume - 2026-05-06 - FINAL
|
|
|
|
## Réalisations clés (session complète)
|
|
1. **60 assets OpenRemote créés** (30 master + 30 smartcity)
|
|
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 'openremote')
|
|
- Assets non visibles sur carte (parent_id lié aux racines)
|
|
- Format location GeoJSON corrigé
|
|
|
|
## Reste à faire
|
|
- Vérifier affichage 2 realms dans légende carte OpenRemote
|
|
- Configurer simulateur SENSOR_COUNT=30
|
|
- 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 realm, COUNT(*) FROM openremote.asset WHERE type='urn:openremote:agent:mqtt' GROUP BY realm;"
|
|
|
|
# Redémarrer OpenRemote si besoin
|
|
docker restart openremote_manager_1 openremote_keycloak_1
|
|
|
|
# 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
|
|
```
|