Not showing values in chart

RyD 4 years ago

Hello Anton

Traccar is not showing any data on RPM chart report . It does show it for total distance but not for any other.

The device has a computed attributed assign as RPM and this new vaule appears in state calculated correctly by the computed attribute This is my computed attribute :

par159 ? par159 * 0.25 : null 

But when I do a chart report for RPM it doesn’t show any data on the chart.

Please Advise

Anton Tananaev4 years ago

Are you using correct key?

Josue4 years ago

Hi. I have the same problem, I create a calculated attribute, I add it and sometimes it does not appear in "status" and when generating a graphic report of it, it generates it in white.

RyD 4 years ago

I believe so, here it is:

{"id":196488812,"attributes":{"sat":13,"par5":1.0,"par21":5.0,"par240":0.0,"par161":0.0,"par178":0.0,"par218":249.0,"vpwr":13.824,"wln_accel_max":0.0,"wln_brk_max":0.0,"par112":0.0,"vbat":4.246,"par158":650.0,"par159":3472.0,"wln_crn_max":0.0,"par136":0.0,"par153":6196800.0,"par154":6184986.0,"par167":78852.0,"par157":1.621007217E9,"archive":true,"distance":0.0,"totalDistance":1.05063795E7,"motion":false,"hours":7093153000},"deviceId":9,"type":null,"protocol":"wialon","serverTime":"2020-06-16T21:28:47.367+0000","deviceTime":"2020-06-16T21:06:05.000+0000","fixTime":"2020-06-16T21:06:05.000+0000","outdated":false,"valid":true,"latitude":-12.105645,"longitude":-76.962755,"altitude":192.0,"speed":0.0,"course":0.0,"address":null,"accuracy":0.0,"network":null}
Anton Tananaev4 years ago

Seems like an issue with your computed attribute. I don't see RPM value.

RyD 4 years ago

this is the value "par159":3472.0

3472.0 * 0.25 = 868 rpm

Does RPM has to be in a specific format??

Anton Tananaev4 years ago

The value is missing from the attributes, which means that it didn't work. You said it appears it shows up in state. Something doesn't add up. Are you comparing different data points?

RyD 4 years ago
Anton Tananaev4 years ago
  1. When did you add the attribute?
  2. Have you looked at the raw route report first before trying to draw a chart?
RyD 4 years ago
  1. Today
  2. The raw route has data on par159

does the computed attribute work retroactive???

Anton Tananaev4 years ago

No, they don't work retroactively.

RyD 4 years ago

Got it, thats the problem.

when I have a value like "Vbat" it doesnt recognize it as computed attribute. All the "par" are recognize at once but not the ones that come with a name already. Is any trick around this?

RyD 4 years ago

It didnt work when it was with upper case, all must be on lowercase. Solved