Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new "averages" endpoint #19

Open
lionralfs opened this issue Jul 7, 2019 · 0 comments
Open

Implement new "averages" endpoint #19

lionralfs opened this issue Jul 7, 2019 · 0 comments
Assignees

Comments

@lionralfs
Copy link
Member

For the frontend, we need an endpoint which gives us an average for an entire day/hour(?) per sensor.

Ideally, the frontend requests the data for a single day/hour and the endpoint returns a list of sensors which include the average measurements for that sensor grouped into 5min intervals.

For example, the result could be a map <sensor_id> --> list of 288 values (1440 minutes per day / 5 minutes = 288)

{
  "92": [ { "p1": 4.2, "p2": 3.5 }, { "p1": 5.2, "p2": 3.3 }, "286 more...." ]
}
@lionralfs lionralfs self-assigned this Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant