Session 2026-05-19: OpenRemote map display investigation, cleanup, fresh install

- Investigated map display issues (agentLink, GeoJSON coords, realm config)
- Cleaned up all dashboards and containers
- Fresh Manager installation (PostgreSQL in recovery)
- Updated TODO.md with current status
- GeoJSON proxy: fixed coordinate order (lon/lat)
- Session resume saved
This commit is contained in:
Eric FELIXINE
2026-05-19 16:22:26 -04:00
parent d1e6bdb685
commit 2377bc07fd
3 changed files with 78 additions and 58 deletions

View File

@@ -912,13 +912,14 @@ def publish_openremote(sid: str, sensor: dict, values: dict) -> bool:
"unit": "µg/m³" if "ugm3" in field else ("°C" if "celsius" in field else ("%" if "percent" in field or "humidity" in field else ("dB" if "db" in field else ""))),
}
# Ajouter la location du capteur (GeoJSON Point)
# Ajouter la location du capteur (GeoJSON Point) avec meta showOnDashboard
lat = sensor.get("lat", 0)
lon = sensor.get("lon", 0)
attrs["location"] = {
"type": "GeoJSONPoint",
"value": {"type": "Point", "coordinates": [lat, lon]},
"timestamp": now,
"meta": {"showOnDashboard": True},
}
payload = {