Résumé final session 2026-05-06 - 60 assets MQTT créés
This commit is contained in:
@@ -1,31 +1,37 @@
|
|||||||
# Session Resume - 2026-05-06 - FINAL
|
# 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)
|
1. **60 assets OpenRemote créés** (30 master + 30 smartcity)
|
||||||
2. **Type corrigé** : `urn:openremote:agent:mqtt` (pour connexion MQTT)
|
2. **Type corrigé** : `urn:openremote:agent:mqtt` (MQTT Agent)
|
||||||
3. **Géolocalisation** : Coordonnées Martinique (Fort-de-France, Le Robert, etc.)
|
3. **Répartition** : 10 Mosquitto + 10 EMQX + 10 BunkerM par realm
|
||||||
4. **Liens MQTT** : Topics configurés (`smartcity-master/*`, `smartcity-smartcity/*`)
|
4. **Géolocalisation** : Martinique (coordonnées aléatoires)
|
||||||
5. **Redémarrage OpenRemote** effectué
|
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
|
## Problèmes résolus
|
||||||
- Authentification Keycloak (audience mapper)
|
- Authentification Keycloak (audience mapper 'openremote')
|
||||||
- Assets non visibles sur carte (parent_id lié aux racines de realm)
|
- Assets non visibles sur carte (parent_id lié aux racines)
|
||||||
- Format location GeoJSON corrigé
|
- Format location GeoJSON corrigé
|
||||||
|
|
||||||
## Reste à faire
|
## 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
|
- Configurer simulateur SENSOR_COUNT=30
|
||||||
- Stabiliser services unhealthy (CrateDB-Stellio, MongoDB, etc.)
|
- Stabiliser services unhealthy (CrateDB-Stellio, Mosquitto, MongoDB, Pulsar, BunkerM)
|
||||||
- ThingsBoard (config manquante)
|
- ThingsBoard (config manquante, conteneur Restart Loop)
|
||||||
|
|
||||||
## Commandes utiles
|
## Commandes utiles
|
||||||
```bash
|
```bash
|
||||||
# Voir assets OpenRemote
|
# 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
|
# Redémarrer OpenRemote si besoin
|
||||||
docker restart openremote-manager-1
|
docker restart openremote_manager_1 openremote_keycloak_1
|
||||||
|
|
||||||
# Vérifier map
|
# Vérifier carte
|
||||||
open https://openremote.digitribe.fr/manager/#/assets
|
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
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user