Pyrrha-Platform / Pyrrha-Dashboard

This repository contains the next generation in-progress Pyrrha (created by Prometeo) solution dashboard based on the Carbon Design System and React.
Apache License 2.0
6 stars 7 forks source link

Add a screen with map and GPS #128

Closed krook closed 2 years ago

krook commented 3 years ago

In the next milestone, we are adding GPS capabilities to the mobile app, so we need to update the dashboard to reflect the location.

There's potentially a reusable Mapbox component in the OpenEEW dashboard.

krook commented 3 years ago

Will use the OpenEEW dashboard code as the starting point.

upkarlidder commented 3 years ago

@mrodrise to add sample location JSON coming from the IoT service.

{
  "acrolein": 0.0,
  "benzene": 0.0,
  "carbon_monoxide": 1.51,
  "device_battery_level": "0",
  "device_id": "Prometeo-C4:4F:33:65:B0:E1",
  "device_timestamp": "2021-09-22 18:43",
  "firefighter_id": "4fba5769-8f95-495a-ad39-0ff834cbc6cc",
  "formaldehyde": 0.0,
  "humidity": 64.3,
  "latitude": 41.3694346,
  "longitude": 2.0838689,
  "nitrogen_dioxide": 0.0,
  "temperature": 27.4
}