Computed Attributes - State / disappearing data.

Hello,

We have a strange problem on our Web/Traccar in State block. When I add all created computed attributes and wait for new data from devices then suddenly every attributes disappear. I guess it's the problem in newly added computed attributes but still don't know how to find the solution.

traccar1

traccar2

Anton Tananaev6 years ago

Check browser console for errors.

Well i found out that there is no new data in table tc_positions from this device. I guess that something just block new data and then that's why it is not showing up in State. Below I place server conifguration - maybe someone will find the solution.

<entry key="config.default">./conf/default.xml</entry>
<entry key='web.port'>80</entry>
<entry key='server.statistics'>false</entry>
<entry key='web.enable'>true</entry>
<entry key='web.debug'>false</entry>
<entry key='web.console'>false</entry>
<entry key='filter.enable'>true</entry>
<entry key='filter.distance'>50</entry>
<entry key='event.motion.speedThreshold'>2.5</entry>
<entry key='geocoder.enable'>false</entry>
<entry key='geocoder.onRequest'>true</entry>
<entry key='geocoder.ignorePositions'>true</entry>
<entry key='geocoder.reuseDistance'>1</entry>
<entry key='database.driver'>com.mysql.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://localhost/traccar?allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>
   <entry key='database.user'>xxx</entry>
   <entry key='database.password'>xxx</entry>
   <entry key='server.timeout'>120</entry>
  <!--  <entry key='processing.copyAttributes.enable'>enable</entry> -->
  <!--  <entry key='processing.copyAttributes'>rpm,speed,power,ignition,battery</entry> -->
<entry key='notificator.types'>web,mail,sms</entry>

As it turns out, no data is sent to the database from the osmand protocol. Only two entries from 02.12.2018 and 28.11.2018 was saved and propably it was from manual request from the browser by me. Data since last day was working in the web app propably in server memory - in State block. Additionaly i don't see anything wrong in logs - i can send them if it's necessary. I have no idea how to solve this problem.

Sorry for doubling post but i don't know why I have no authorisation to edit previews posts.

As it turns out, no data is sent to the database from the osmand protocol. Only two entries from 02.12.2018 and 28.11.2018 was saved and propably it was from manual request from the browser by me. When i try Data since last day was working in the web app propably in server memory - in State block. Additionaly i don't see anything wrong in logs - i can send them if it's necessary. I have no idea how to solve this problem.
Edit: Data to the device in a system with a specific IMEI is sent from two devices with the Osmand and GPS103 protocols and that's why it is not showing in state or saving in database. Another thing is that maybe there must be date/time in sent data to add a record to the database.
Thanks in advance for your help.

Fay5 years ago

Hi Andrzej,
I am having the same problem, did you figure out the solution?