traccar / traccar-web

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

Feature request - computed attributes in map #1058

Closed cop98 closed 1 year ago

cop98 commented 1 year ago

It would be very useful to be able to display the computed attributes in the pop-up in the map as well. Currently (traccar 5.5) it is only possible to display the standard attributes of Traccar

tananaev commented 1 year ago

Wrong. You can display custom attributes as well.

cop98 commented 1 year ago

Hi,

I mean these attributes. In the example you fail to insert in the pop-up "carburante finto"

image image
tananaev commented 1 year ago

Maybe the issue with the space. Not sure if that's supported.

cop98 commented 1 year ago

I tried with an attribute without spaces but the result is the same.

Screenshot 2022-12-08 alle 20 23 47 Screenshot 2022-12-08 alle 20 24 28

If I try to enter the name and save anyway the following error appears:

Screenshot 2022-12-08 alle 20 25 03
tananaev commented 1 year ago

The error is completely unrelated. It means you have too much data stored in your user attributes.

cop98 commented 1 year ago

But beyond the error. Is it normal that I can't search for "LitersFuel"?

tananaev commented 1 year ago

Obviously if it's a custom attribute, you won't be able to search for it, but you should still be able to add it.

cop98 commented 1 year ago

OK, I was able to insert the attribute into the list. But when I go to click on the vehicle in the map, this error appears. Do you know what it means?

if i delete the custom attribute from the popup it comes back to work

Thanks

image

tananaev commented 1 year ago

Probably means something wrong with the attribute, but impossible to tell what exactly based on this error message.

cop98 commented 1 year ago

Hello, I made a video where you can see the error. can you figure out what's wrong?

This does this with all attributes calculated and with all users.

The attribute is correct, in the detail it shows correctly, it is only in the map that it does not show up

Thank you very much

https://www.youtube.com/watch?v=vfcuSm6U7UY&ab_channel=TheSupernik98

tananaev commented 1 year ago

It doesn't really help. What's the value of the attribute? Check the database.

cop98 commented 1 year ago

The value of the attribute is 0

tananaev commented 1 year ago

Can you please provide full JSON from the database.

cop98 commented 1 year ago

I don't know what you're talking about. If you have a guide of how to do this, I will gladly do it.

If it would be helpful, I have shared with you the DB

Thank you

https://drive.google.com/file/d/14sTV9flGVdnoDsCR_Ovv9UcU5JkNNfnI/view?usp=sharing

tananaev commented 1 year ago

I don't need the whole database. I just need a single sample.

cop98 commented 1 year ago

Unfortunately, I don't know how to get what you say. Can this report be useful? report.xlsx

tananaev commented 1 year ago

I checked the last message and it doesn't have the attribute in question, so the value is not zero as you said. Going forward I ask you to provide clear evidence for your statements.

cop98 commented 1 year ago

sorry, I had changed the attribute to exam but actually didn't write it down. I used the attribute "DeepSleep" as well as "carburante finto" as I had shown in the video since you had told me that maybe spaces were not supported. The error is the same in the last message in the report above is = 0 (DeepSleep=0).

I will leave you some screens taken from the video posted above

Screenshot 2022-12-10 alle 17 59 03 Screenshot 2022-12-10 alle 17 59 20 Screenshot 2022-12-10 alle 17 59 42
tananaev commented 1 year ago

I was able to reproduce it. Should be fixed now.

cop98 commented 1 year ago

thank you very much, as always