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

Implement concept of "tracks" for mobile boxes #100

Open
ubergesundheit opened this issue Aug 3, 2017 · 2 comments
Open

Implement concept of "tracks" for mobile boxes #100

ubergesundheit opened this issue Aug 3, 2017 · 2 comments

Comments

@ubergesundheit
Copy link
Member

From a discussion between @noerw @mpfeil and @ubergesundheit

Currently, the route /boxes/:boxId/locations returns all locations ever recorded for a box. The response is used for draw the locations of the box on the map.

Opening a graph of a sensor displays the last recorded 48 hours.

There is a visual connection between the locations on the map and the graph. (with colors, on mouseover, ...)

Several Problems:

  • If there are many locations, displaying will be cluttered and slow
  • Only the last recorded 48 hours will be colored?

We need a concept of "tracks" for mobile boxes to organize and unclutter measurements.

  • Tracks are saved in the box as an array of timestamps (optional with a name)
  • A route (for example /boxes/:boxId/tracks/start) starts a new track and saves the start timestamp in the tracks field of a box.
  • Starting a new track ends the previous track (by saving a new timestamp in the tracks array)
  • Measurements can then be queried through limiting the timestamp to a tracks start and the next tracks start timestamp

Later:

  • Routes for track management
    • Renaming
    • Deleting

Anything I forgot @noerw @mpfeil ?

@noerw
Copy link
Member

noerw commented Aug 3, 2017

This feature should fall back gracefully when no track is ever created by the user. This would be useful for continuously running devices.
Options that come to mind:

  1. (currently implemented) limit the shown trajectory to the same time interval as for measurements (currently 48h)
  2. autodetect tracks by finding gaps of more than 30minutes in the location history
  3. autodetect tracks based on some spatiotemporal filter (distance per hour?)

also: 💯

@mpfeil
Copy link
Member

mpfeil commented Aug 3, 2017

we should also include @robarto to this discussion

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

No branches or pull requests

3 participants