traccar / traccar-web

Traccar GPS Tracking System
https://www.traccar.org
Apache License 2.0
814 stars 1.13k forks source link

allow multiple device selection in reports/replay module #1054

Open interduo opened 1 year ago

interduo commented 1 year ago

Is your feature request related to a problem? Please describe. Yes. Now we are not allow to view enought data on screen / few devices in some reports/replay module.

Describe the solution you'd like Allow to choose few devices in (not always only one) in: http://traccar:8082/reports/event http://traccar:8082/reports/trip http://traccar:8082/reports/stop http://traccar:8082/reports/chart http://traccar:8082/replay in device selection.

So in shortcut: please change select to multiselect in all elements with labels: "Device".

tananaev commented 1 year ago

You have to provide some justification why we should add it. There was a reason for not implementing it - performance. We need to know why it is so important, what alternatives you considered etc.

By the way, I'm sure this has been discussed before. Have you checked existing tickets to make sure it's not a duplicate?

dough29 commented 1 year ago

I also have that need.

On legacy UI I used to make a report for part - not all - of my devices to know what time they entered a perimeter and export the report to Excel file.

Thanks.

tananaev commented 1 year ago

Which report?

dough29 commented 1 year ago

Like this :

image

image

tananaev commented 1 year ago

OK, so the event report?

dough29 commented 1 year ago

In my case yes for event report, seems like OP looks for more places for this feature.

interduo commented 1 year ago

You have to provide some justification why we should add it. There was a reason for not implementing it - performance. We need to know why it is so important, what alternatives you considered etc.

You say performance - it's better to send one request and get all needed data then sending few and few more requests for comparing between tracks/cars.

If You got many cars with many tracks per day in one region it's very helpful to see all tracks/cars in one screen to see all the shared parts.

By the way, I'm sure this has been discussed before. Have you checked existing tickets to make sure it's not a duplicate?

I didn't find duplicated issues searching by title. Maybe some message about this is inside issue that the subject is not connected with the subject?

tananaev commented 1 year ago

You say performance - it's better to send one request and get all needed data then sending few and few more requests for comparing between tracks/cars.

Technically there's no difference. We actually request devices one by one on the backend anyway.

But I'm not talking about theoretical performance. I'm talking about practice. For example, many people just select a group of devices when they actually don't need all devices from that group. Just because convenience.

Another very common situation is when people are not tech savvy at all and they don't realize that if you try to draw a million locations on the map, it's going to be slow, no matter what you do. They try to request a report for multiple devices and the app hangs or becomes very unresponsive and they complain.

Maybe we can hide it behind some configuration parameter, so advanced users can have access to it.

interduo commented 1 year ago

Good point but there would be always some situations that You could generate big data requests (no matter choosing one or more devices).

For this we could have settings called:

And I think it would be suitable for tech and non-tech.

interduo commented 1 year ago

Is there any hope that this issue would be resolve?

tananaev commented 1 year ago

We have it enabled for some reports.

interduo commented 1 year ago

We have it enabled for some reports.

But not in most important place - replay module :(

Imagine that You would like to check where was all the devices at 13:30 yesterday. You need to do this one by one whitch is very frustrating.

tananaev commented 1 year ago

Actually you're bringing up a good point. How would it even work if devices send positions at completely different times.

interduo commented 1 year ago

Actually you're bringing up a good point. How would it even work if devices send positions at completely different times.

In most situations it doesnt matter if device location is +/-5 min. We just want to know where they were in that time with graphical presentation on map necessary. Well this is real time map substitution but for the selected time.

I remember that in 2.x version it was somehow possible and now it's not.

Real case situation: Somebody calls that Your car is not parked correctly in main parking capital world city Lubartów :) - how would You check that by traccar knowing only location?

tananaev commented 1 year ago

What if it not 5 minutes, but 5 hours?

It was never available on any official version.

interduo commented 1 year ago

Situation 1: device was not available in that time (turned off LTE tracker) show last device location (before that time on map), mark it as red, after mouse over present last location time,

Situation 2: the device was never available before (for newly added devices and checking past time before) don't present on map or present in center of viewport with black color and message after mouse over "device was not avaiable before"

It was never available on any official version.

So maybe it was 3.x, it was 4-5Y ago.

interduo commented 1 year ago

@tananaev did something move on this issue?

tananaev commented 1 year ago

No.

interduo commented 5 months ago

In 6.2 I do not have option REPLAY in Reports. Do I need to turn on it somewhere?

We can choose more than one device in reports - issue is resolved.

interduo commented 5 months ago

It is only implemented in legacy view. Please implement that function in modern view.