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

Graphs: date range doesn't work when selecting "Cloud timestamp" #65

Open
cdupont opened this issue Feb 14, 2019 · 4 comments
Open

Graphs: date range doesn't work when selecting "Cloud timestamp" #65

cdupont opened this issue Feb 14, 2019 · 4 comments
Assignees
Labels

Comments

@cdupont
Copy link
Contributor

cdupont commented Feb 14, 2019

If I enter two dates in "date from" and "date to" on the graph page, and select "Cloud timestamp", the data downloaded is still based on the device timestamp, not the Cloud timestamp.

@cdupont cdupont added the bug label Feb 14, 2019
@cdupont
Copy link
Contributor Author

cdupont commented Feb 14, 2019

With this page:
http://dashboard.waziup.io/sensors/LUMS_NODE_1/SM2
When selecting two dates, this is the request that is issued:

https://api.waziup.io/api/v1/sensors/LUMS_NODE_1/measurements/SM2/values?lastN=100&dateFrom=2016-05-03T10:00:00Z&dateTo=2019-02-15T11:00:00Z

I think lastN should be removed. A high limit should be put instead.

@cdupont
Copy link
Contributor Author

cdupont commented Feb 14, 2019

See also bad behavior of lastN: Waziup/api-server#52

@cdupont
Copy link
Contributor Author

cdupont commented Feb 18, 2019

A simple solution is to add a field "number of datapoints" in the query form. This field corresponds to limit.

@cdupont
Copy link
Contributor Author

cdupont commented Sep 26, 2019

Still get difficulty selecting a time range.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants