zotbins / ZotBinsAPI

2 stars 1 forks source link

Bin stats file download branch PR #8

Closed gracechoe closed 4 years ago

gracechoe commented 4 years ago

Takes in sensor ID, start time, and end time (identical to get observation) and returns csv file.

To try out switch to this branch on pythonanywhere and try these: https://zotbins.pythonanywhere.com/observation/stats?sensor_id=ZBin3B&start_timestamp=2020-02-04&end_timestamp=2020-02-05 https://zotbins.pythonanywhere.com/observation/stats?sensor_id=ZBin1D&start_timestamp=2020-02-18&end_timestamp=2020-02-20

okyang commented 4 years ago

@gracechoe it looks good! I tried it out and it works, however, to make it easier maybe add the ".csv" extension to the name of the downloaded file. I will merge the pull request and you can add that quick change later.