Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 sensor measurements #3

Open
russbiggs opened this issue Feb 21, 2024 · 0 comments
Open

V3 sensor measurements #3

russbiggs opened this issue Feb 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@russbiggs
Copy link
Member

Description

Remove the /v3/locations/{locations_id}/measurements call in favor of the new /v3/sensors/{sensors_id}/measurements. This should include an options for a "high-level" locations measurements call.

This locations call could likely abstract sensors to parameters in the library API but use the REST API endpoints. The flow would be something like this:

  • Call location by locations_id v3/locations/{locations_id}
    • gather the available sensor ids for that location (filtering by provided parameters if necessary)
    • loop through sensors ids and make the sensors/{sensors_id}/measurements call one by one
    • append the results of sensor measurements into a single payload.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants