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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user