Ribbit-Network / ribbit-network-dashboard

The web dashboard for the world's largest crowdsourced network of open-source, low-cost, CO2 Gas Detection Sensors.
MIT License
17 stars 16 forks source link

Add sampling frequency options #85

Closed spestana closed 2 years ago

spestana commented 2 years ago

Addressing #31

I've added a sampling frequency options of 1 minute (instantaneous samples), 5, 15, 30 minutes, and 1 hour (averaged over that time period). I did this by adding an optional resampling step within _db.get_sensordata(), and a second dropdown menu on the dashboard. The sampling frequency option selected is also reflected in the data.csv download. I also changed the default duration and sampling to 7 days and 1 hour respectively, just because I thought it looked more interesting than the "noisy" instantaneous data.

Other minor changes in this pull request:

spestana commented 2 years ago

image

keenanjohnson commented 2 years ago

Love it!