-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Only query data for sensors that are visible on the map #34
Comments
That would be a great improvement for sure as the number of sensors grows. |
Hello, It looks like at the moment, sensor data is queried only for specific sensors ribbit-network-dashboard/db.py Lines 21 to 24 in bd8050d
Is this about the other query, and having a lat lon filter there? ribbit-network-dashboard/db.py Lines 9 to 14 in bd8050d
|
@sriki18 Yep, this issue is for the top query (the map data query) |
The map is 2D, so we only need to query and render the sensors that are visible on the map. Approach: find the (lat, lon) of the top left and bottom right corners of the map and pass those coordinates to the InfluxDB query.
https://docs.influxdata.com/influxdb/cloud/query-data/flux/geo/filter-by-region/#box
The text was updated successfully, but these errors were encountered: