new column in route report

brazer3 years ago

hello,
what can be the issue of empty temperature value at route report?

changes at code are on the screenshot:
https://monosnap.com/file/qkTpJcmZp5xNun2l16ZqEcVwr6O8OZ

empty values at report:
https://monosnap.com/file/FUsYoofKgTVZuokCPN7LAhsRKI2h9P

device actually has temperature value and graph is being generated:
https://monosnap.com/file/NkQoLWaSP0lq6IX9rnu9X02yRkySfL

thank you

Anton Tananaev3 years ago

Maybe different temperature attribute? Check all position attributes.

brazer3 years ago

https://monosnap.com/file/sj6fEayJpQhrbD58d1lp2ErDorXF19

by the way, dataIndex: 'temp1' or 'temp' also doesn't work

brazer3 years ago
brazer3 years ago

here is the reply from the /api/report/route:

{
   "id":748672,
   "attributes":{
      "priority":0,
      "sat":15,
      "event":0,
      "ignition":false,
      "motion":false,
      "rssi":5,
      "io200":0,
      "gpsStatus":1,
      "io81":0,
      "io89":0,
      "pdop":0.6000000000000001,
      "hdop":0.30000000000000004,
      "power":12.929,
      "battery":3.995,
      "io68":0,
      "adc1":43,
      "io84":700,
      "io85":0,
      "door":0,
      "operator":25503,
      "odometer":10746351,
      "temp1":16.400000000000002,
      "io83":14275,
      "io87":701774100,
      "io76":2306152171165590056,
      "distance":0.0,
      "totalDistance":1.076116767E7,
      "hours":1004832920,
      "Google Maps":"www.google.com/maps/place/50.3219999,28.6376716",
      "deviceTemp":16.400000000000002,
      "fuel":70.0,
      "serviceOdometer":701774100
   },
   "deviceId":3,
   "type":null,
   "protocol":"teltonika",
   "serverTime":"2022-05-08T21:05:05.000+00:00",
   "deviceTime":"2022-05-08T21:04:32.000+00:00",
   "fixTime":"2022-05-08T21:04:32.000+00:00",
   "outdated":false,
   "valid":true,
   "latitude":50.3219999,
   "longitude":28.6376716,
   "altitude":224.0,
   "speed":0.0,
   "course":154.0,
   "address":"Житомирська область, UA",
   "accuracy":0.0,
   "network":null
}

as you can see, the temp1 and deviceTemp are present

brazer3 years ago

may be the another piece of code in different file which transmits to ReportController this rows and it's required to indicate new data for column?

Anton Tananaev3 years ago

Are you sure you compiled the project correctly after changing the code?

brazer3 years ago

sure, there is non-minified script... however no display of new value in table...