vitalidze / traccar-web

Traccar Web UI mod
http://traccar.litvak.su/
152 stars 145 forks source link

Display errors + ignition status issue #973

Open Fleetracking opened 7 years ago

Fleetracking commented 7 years ago

Hi I'm using last backend version 3.8 + GUI 3.7. I want to report some display issues to improve GUI

1) "@" symbols ?! image

image

image

2) "Unknown command" ?! I suggest to optimize commands in function of protocol (exp: no command to view for osmand protocol) also view an ack if command success. image

3) "distance" and "total distance" attributes viewed even if "show odometer" is desactivated at device conf window image

4) mismatch status (offline status with a red square in map) image

5) mismatch "ignition" status (map report ignition at true status even if car is really stopped speed=0) image

vitalidze commented 7 years ago
  1. and 2. are caused by an old version of web UI cached in your web browser. You need to clean up it's cache. This step is present in installation instructions.
  1. "distance" and "total distance" attributes viewed even if "show odometer" is desactivated at device conf window

These are parameters (or "sensors" values) coming from your device. It has nothing to do with "odometer". You can hide them with sensors functionality.

  1. mismatch status (offline status with a red square in map)

Looks like you don't understand the meaning of those two statuses. "Offline" means that your device does not send any data for some period of time (configurable in device profile). "Stopped" (or red square) means that your device is not moving. So this means that when your device last sent it's location it was not moving.

  1. mismatch "ignition" status (map report ignition at true status even if car is really stopped speed=0)

This is what your device is reporting. It has nothing to do with web UI.

Fleetracking commented 7 years ago

Dear @vitalidze Thank you first for your answers. 1 & 2) Problem resolved after reclearing browser cach. Maybe customizing supported commands by protocol will be a futur enhancement

3) No sensor is configured for this device (it's a smartphone using Client Android App)

4) The snapshot is for a smartphone at offline status (no Data connection) 2h4m ago (configured timeout is 900s), so it's at the same time at "offline" status and also at "stopped" status because it's the last data available at the server (anyway for osmand protocol reported speed=0 i think). So, can i conclude that at this case "stopped" status has more priority to report at GUI?

5) Maybe it's a backend interpretation's issue of H02 protocol, because i remarked that ignition status is always inversed.

Best regards

vitalidze commented 7 years ago

Maybe customizing supported commands by protocol will be a futur enhancement

Agreed.

No sensor is configured for this device (it's a smartphone using Client Android App)

Then you must have enabled distance calculation on the "backend" side with the distance.enable parameter in config file.

So, can i conclude that at this case "stopped" status has more priority to report at GUI?

I don't understand how did you come to this conclusion. "Stopped" status has more priority over what?

Maybe it's a backend interpretation's issue of H02 protocol, because i remarked that ignition status is always inversed.

Yes, it looks like this.

Fleetracking commented 7 years ago

Hi

BR

vitalidze commented 7 years ago

I checked my "backend" config files "traccar.xml" and "default.xml", "distance.enable" parameter is not configured.

Then maybe you had it configured at some point. Anyway, it has nothing to do with the web UI, this is what you have in your database. Odometer calculation on the Web UI side is done differently and does not invoke any sensor.

Regarding device status my question is : when a device is disconnected from the server (no data received during configured Timeout) and at the same time device is in idle status (Speed < Idle_threshold during configured minimum period), what's the status reported by GUI ?

The "Offline" status is a parallel status with "Idle"/"Moving". Same applies to the "Online" status. So device may be moving and online, and can be moving and offline. There is no priority, system just reports what it received from device and shows you the status based on the settings.

Fleetracking commented 7 years ago

Hi everybody Any idea regarding "distance" and "total distance" attributes? These attributes are a part of "other" column at mysql DB (exp: {"battery":"38.0","ip":"52.139.121.75","distance":0.0,"totalDistance":399493.49}). BR

vitalidze commented 7 years ago

I am out of ideas. I think it's worth asking same question on the "backend" issue tracker.

Fleetracking commented 7 years ago

After asking question on backend forum, the answer is : Distance calculation is always enabled and can't be disabled and distance.enable has no effect since 3.7 version !! Do you have a suggestion how to customize which "attribute" to show for which Device. BR

vitalidze commented 7 years ago

Yes, as I have already said you can hide them with sensors functionality

Fleetracking commented 7 years ago

Hi I feel that i begin to loop :) As mentioned no sensor is configured for these devises (smart phones), so why these "distance" attributes are viewed at GUI? You answered me that i have "distance.enable" enabled at my confs files. After check, "distance.parameter" isn't configured ... BR

vitalidze commented 7 years ago

All sensors are displayed by default unless you configure them to be hidden. You need to read the article to figure out how to do it.

Fleetracking commented 7 years ago

Thank you, finally attributes hiden by:

vitalidze commented 7 years ago

But it's not indicated that all sensors are displayed by default if not added for some device.

It's obvious from my point of view. This can be figured out just by looking into any position received from your device.

sankalpask commented 7 years ago

Hi, had the same issue with distance & totalDistance. Is there any way to hide these parameters from all devices? (It's taking too much time if I have to create & hide sensors for all my devices) Thanks.

vitalidze commented 7 years ago

@sankalpask There is no way to hide it from all devices, except configuring sensors. You can copy sensors between devices. There is a drop-down box and a button at the top of device editing screen. Another way is to copy them with some SQL query.

sankalpask commented 7 years ago

Thanks. I'll try this.