77 lines
3.4 KiB
Markdown
77 lines
3.4 KiB
Markdown
# Session Resume - 04 Mai 2026 (Suite)
|
|
|
|
## Date : 04 Mai 2026 - Soirée
|
|
|
|
## ✅ Réalisations de cette session
|
|
|
|
### 1. Diagramme de flux Mermaid (Commit `87238cb`)
|
|
- **Problème** : Erreur de parseur Mermaid "Expecting 'SQE'..." à la ligne 38
|
|
- **Cause** : `OR` est un mot réservé en Mermaid (opérateur logique)
|
|
- **Correction** :
|
|
- `OR` → `OPENREMOTE`
|
|
- `KC` → `KEYCLOAK`
|
|
- 10 remplacements effectués dans `data-flow-diagram.md`
|
|
- **Statut** : ✅ Commit + Push vers Gitea
|
|
|
|
### 2. Grafana Datasources (Commit `d1ce116`)
|
|
- **Problème** : "Provisioned data source... cannot be modified using the UI"
|
|
- **Correction** : Modification de `datasources.yml` dans le container Grafana
|
|
- `readOnly: false` ajouté pour toutes les sources
|
|
- Type Orion-LD corrigé : `json` → `grafana-simple-json-datasource`
|
|
- GeoServer WMS, FROST-Server, Stellio NGSI-LD tous mis à `readOnly: false`
|
|
- **Vérification** : ✅ Toutes les sources sont modifiables (sauf InfluxDB par défaut)
|
|
- **Statut** : ✅ Commit + Push vers Gitea
|
|
|
|
### 3. GeoServer 404 (Commit `fc6292f`)
|
|
- **Problème** : Erreur 404 quand on crée un entrepôt via l'interface web
|
|
- **Solution** : Utiliser l'API REST (fonctionnelle) au lieu de l'interface Wicket
|
|
- **Documentation** : `geoserver_404_fix.md` créé
|
|
- **Statut** : ✅ Commit + Push vers Gitea
|
|
|
|
### 4. Notification Telegram
|
|
- **Action** : Cron job `bbd150e663c9` créé pour envoyer la todo list
|
|
- **Statut** : ✅ Exécuté et terminé (probablement reçu sur Telegram)
|
|
|
|
## 📝 Commits effectués (style atomique - immédiats)
|
|
1. `8bf872c` - Diagramme de flux : OpenRemote via brokers uniquement
|
|
2. `8edd098` - Orion-LD Grafana fix (type plugin)
|
|
3. `fc6292f` - GeoServer 404 fix documentation
|
|
4. `87238cb` - Mermaid syntax fix (OR→OPENREMOTE)
|
|
5. `d1ce116` - Grafana datasources readOnly: false
|
|
|
|
## 🔧 Problèmes résolus
|
|
- ✅ Mermaid diagram syntax error (reserved keywords)
|
|
- ✅ Grafana provisioned datasources readOnly
|
|
- ✅ Orion-LD plugin type incorrect
|
|
- ✅ GeoServer 404 workaround documenté
|
|
|
|
## ⏳ Reste à faire (pour Toi)
|
|
1. **GeoServer** : Créer magasin WMS géoMartinique (via API REST ou interface maintenant que le 404 est contourné)
|
|
2. **OpenRemote** : Créer MQTT Agent (Manager UI : https://openremote.digitribe.fr/manager/)
|
|
3. **Grafana** : Nettoyage des datasources inutiles (maintenant que tu peux les modifier via l'UI)
|
|
|
|
## 🔗 URLs importantes
|
|
- **GeoServer** : https://geoserver.digitribe.fr/geoserver/web/
|
|
- **Grafana** : https://grafana.digitribe.fr/d/smart-city-map-test
|
|
- **OpenRemote** : https://openremote.digitribe.fr/manager/
|
|
- **Gitea** : https://gitea.digitribe.fr/eric/smart-city-digital-twin-martinique
|
|
|
|
## 📊 État actuel des services
|
|
| Service | Status | Port | Modifiable |
|
|
|---------|--------|------|------------|
|
|
| Simulateur Python | ✅ Actif | - | ✅ |
|
|
| EMQX | ✅ Connecté | 11883 | ✅ |
|
|
| InfluxDB | ✅ Configuré | 8086 | ✅ |
|
|
| FROST-Server | ✅ 21k+ obs | 8080 | ✅ |
|
|
| Orion-LD | ⚠️ À vérifier | 1026 | ✅ |
|
|
| Stellio | ⚠️ À vérifier | 8080 | ✅ |
|
|
| OpenRemote | ⚠️ 403 API | 8080 | ⚠️ Via UI |
|
|
| GeoServer | ⚠️ 404 UI | 8080 | ✅ Via API |
|
|
| Grafana | ✅ Dashboard | 3001 | ✅ |
|
|
|
|
## 📋 Dernier commit
|
|
`d1ce116` - Grafana: Fix GeoServer + Orion-LD datasources (readOnly: false)
|
|
|
|
---
|
|
**Prochaine session** : Reprendre à partir de ce fichier. Les 3 commits majeurs (Mermaid fix, Grafana datasources, GeoServer 404) sont tous poussés sur Gitea.
|