openaq / openaq-cli

OpenAQ command line interface
MIT License
3 stars 0 forks source link

add `--period` optional flag to `openaq measurements list <locations_id>` command #16

Open majesticio opened 1 year ago

majesticio commented 1 year ago

--period flag would allow a user to aggregate by month, day or hour.

Example: openaq measurements list 2178 --period month

russbiggs commented 1 year ago

we have --period-name but it looks like i neglected to document it. I'm not sure if its functional yet in API v3 anyways..

https://github.com/openaq/openaq-cli/blob/main/cmd/root.go#L67