Metropolitan-Council / tc.sensors

Package with functions to pull sensor data, sensor IDs, and sensor configuration for MnDOT metro district
https://metropolitan-council.github.io/tc.sensors
Other
1 stars 0 forks source link

pull_sensor: allow user to specify time interval #5

Closed ashleyasmus closed 4 years ago

ashleyasmus commented 4 years ago

At the moment pull_sensor gets data at 30-second intervals, then writes it to a file, then you can do stuff with the new data. But nobody wants 30-second data. Would be nice if you could specify one of a few common intervals (15-minute, hourly, daily).

ashleyasmus commented 4 years ago

this might be obsolete if we start just pulling the data into a database. so i wouldn't prioritize it.

eroten commented 4 years ago

How do you aggregate to hourly data right now?

eroten commented 4 years ago

@ashleyasmus , check out aggregate_sensor_data() when you get the chance!

eroten commented 4 years ago

Aggregating up to any time interval from the raw, 30 sec. records takes place in aggregate_sensor() and was released in #12