FlexMeasures / flexmeasures

The intelligent & developer-friendly EMS to support real-time energy flexibility apps, rapidly and scalable.
https://flexmeasures.io
Apache License 2.0
133 stars 34 forks source link

sensor stats endpoint #1116

Open nrozanov opened 1 week ago

nrozanov commented 1 week ago

Description

Added sensors//stats api endpoint

Look & Feel

You should start getting smth like this when requesting http://localhost:5000/api/v3_0/sensors/{sensor_id}/stats { "max_event_start": "Thu, 27 Jun 2024 21:00:00 GMT", "max_value": 18.0, "mean_value": 10.104166666666666, "min_event_start": "Thu, 04 Apr 2024 22:00:00 GMT", "min_value": 4.0, "status": 200, "sum_values": 2425.0 }

How to test

Go to stats page for some sensor, check you get response like from above

Further Improvements

-

Related Items

-


nhoening commented 1 week ago

I believe we could add the number of values as well?