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

View live map of single device? #199

Closed
aszymanik opened this issue Jun 16, 2017 · 4 comments
Closed

View live map of single device? #199

aszymanik opened this issue Jun 16, 2017 · 4 comments

Comments

@aszymanik
Copy link

I'd like to view the live map of a single device. The live map presently shows all users and all devices but there are times when we're only interested in one device and the autozoom/autopan feature makes it harder to follow a single device. When the devices/users are far apart, the autozoom is too zoomed out to see any of the clients clearly. Finally, by being able to view only one device at a time, I can share a view URL without giving up the privacy of all users tracked.

Insecurely, I can modify ws_connect() of last/websock.js to filter devices in ws.onmessage but this is ugly and is hardcoded. Using jquery can clean this up a bit but from a privacy standpoint, all devices are still being transmitted to the web client and we have to trust he/she has not removed filtering (and thus locations of everyone else).

This issue could possibly be solved by allowing /ws/last to take a param and send to send_last() in http.c such that only one device is emitted.

Thanks

@jpmens
Copy link
Member

jpmens commented Jun 16, 2017

You've certainly done your homework! :-)

I cannot work on this, but if you're up to creating a pull request, I'd certainly look at it and take it. I agree that the last method you speak of (/ws/last takes a parameter) would be the cleanest; apart from privacy it's the way to limit the amount of data going to the websocket, so that's what I'd prefer.

@ghost
Copy link

ghost commented Oct 28, 2018

Seconded!

@jpmens
Copy link
Member

jpmens commented Mar 11, 2020

Closing as stale, and directing to OwnTracks Fronted.

@jpmens jpmens closed this as completed Mar 11, 2020
@jmhunter
Copy link

jmhunter commented May 1, 2022

For others interested in this, you can follow the discussion at owntracks/frontend#5 which seems related (but I'm not sure will provide the 'live' aspect?)

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

No branches or pull requests

3 participants