absmach / magistrala-ui

UI Repository for Magistrala IoT
9 stars 15 forks source link

Update sources (Readers) to work with widgets #96

Closed dborovcanin closed 5 months ago

dborovcanin commented 7 months ago

Related to https://github.com/absmach/magistrala/issues/1966.

ianmuchyri commented 7 months ago

Some of the items we need to focus on include:

felixgateru commented 6 months ago

Type of chart

Potential modifications

  1. Query data by thing Id and name of sensor paramter
  2. Upgrade protocol to ws for real time data streaming or
  3. Use async time intervals on the frontend.

Type of chart

Type of data required

Y axis data: sensor value X axis data: time data

Potential modifications

  1. Query data by thing ID, name of sensor parameter, start period, end period

Type of chart

Potential modification

Query data by thing ID, name of sensor parameter, start period, end period and aggregate

Notes

The return type is maintained as is from sdk.ReadMessages

dborovcanin commented 6 months ago

Currently, we will focus only on data filtering (and aggregation if necessary) to enable charts to work; https://github.com/absmach/magistrala/issues/1966 is a lower priority and will be added in the next release.