Does your device send result? If yes, please provide logs.
Hi Anton,
sorry for my late reply. this below (1) log if i've remove filter.distance and (2) if i've already add filter.distance :
2018-02-23 17:42:29 INFO: [248BCAAB] id: 358735071212806, command type: custom sent
2018-02-23 17:42:29 DEBUG: [248BCAAB: 5023 > 192.168.110.1] HEX: 787811800b0000000053544154555323000073120d0a
2018-02-23 17:42:30 DEBUG: [248BCAAB: 5023 < 192.168.110.1] HEX: 787868156000000000426174746572793a342e3132562c4e4f524d414c3b20475052533a4c696e6b2055702047534d205369676e616c204c6576656c3a5374726f6e673b204750533a4f46463b2020204143433a4f46463b20446566656e73653a4f4e3b20000205621fa20d0a
2018-02-23 17:42:30 DEBUG: [248BCAAB: 5023 > 192.168.110.1] HEX: 7878051500c9756c0d0a
2018-02-23 17:42:36 INFO: [248BCAAB] id: 358735071212806, time: 2018-02-23 17:25:46, lat: -7.89925, lon: 112.59916, speed: 0.0, course: 160.0, result: Battery:4.12V,NORMAL; GPRS:Link Up GSM Signal Level:Strong; GPS:OFF; ACC:OFF; Defense:ON;
2018-02-23 17:50:55 INFO: [3576040E] id: 358735071212806, command type: custom sent
2018-02-23 17:50:55 DEBUG: [3576040E: 5023 > 192.168.110.1] HEX: 787811800b0000000053544154555323000073120d0a
2018-02-23 17:50:56 DEBUG: [3576040E: 5023 < 192.168.110.1] HEX: 787868156000000000426174746572793a342e3132562c4e4f524d414c3b20475052533a4c696e6b2055702047534d205369676e616c204c6576656c3a5374726f6e673b204750533a4f46463b2020204143433a4f46463b20446566656e73653a4f4e3b2000020567480f0d0a
2018-02-23 17:50:56 DEBUG: [3576040E: 5023 > 192.168.110.1] HEX: 78780515000468850d0a
2018-02-23 17:50:56 INFO: Position filtered by Distance filters from device: 358735071212806 with id: 2
2018-02-23 17:51:03 DEBUG: [756E8ED8: 5023 < 192.168.110.1] HEX: 78781f121202170a3300d600da3e180c1527901ed0d901fe0a3f180088d0035e7ac10d0a
2018-02-23 17:51:03 DEBUG: [756E8ED8: 5023 > 192.168.110.1] HEX: 78780512000d79410d0a
2018-02-23 17:51:05 INFO: [756E8ED8] id: 358735070450670, time: 2018-02-23 17:51:00, lat: -7.94597, lon: 112.61832, speed: 16.2, course: 217.0
2018-02-23 17:51:09 DEBUG: [756E8ED8: 5023 < 192.168.110.1] HEX: 78781f121202170a3308d600da3e8f0c1526b015d01b01fe0a3f180088d1035fe5b90d0a
2018-02-23 17:51:09 DEBUG: [756E8ED8: 5023 > 192.168.110.1] HEX: 78780512000e4bda0d0a
2018-02-23 17:51:09 INFO: Position filtered by Distance filters from device: 358735070450670 with id: 3
You need to use filter.skipAttributes
config parameter to not filter messages with result.
Hi Anton,
I've already add filter.skipAttributes true, but still the web not have'nt show command result. this is log :
2018-02-23 18:48:06 INFO: [DF9B08CD] id: 358735071212806, command type: custom sent
2018-02-23 18:48:06 DEBUG: [DF9B08CD: 5023 > 192.168.110.1] HEX: 787811800b0000000053544154555323000073120d0a
2018-02-23 18:48:09 DEBUG: [A9FA6411: 5023 < 192.168.110.1] HEX: 78780a13850604000200b2e40a0d0a
2018-02-23 18:48:09 DEBUG: [A9FA6411: 5023 > 192.168.110.1] HEX: 787805130003cae30d0a
2018-02-23 18:48:09 INFO: Position filtered by Distance filters from device: 358735071234206 with id: 1
2018-02-23 18:48:16 DEBUG: [DF9B08CD: 5023 < 192.168.110.1] HEX: 787868156000000000426174746572793a342e3132562c4e4f524d414c3b20475052533a4c696e6b2055702047534d205369676e616c204c6576656c3a5374726f6e673b204750533a4f46463b2020204143433a4f46463b20446566656e73653a4f4e3b200002057df7d40d0a
2018-02-23 18:48:16 DEBUG: [DF9B08CD: 5023 > 192.168.110.1] HEX: 787805150005790c0d0a
2018-02-23 18:48:16 INFO: Position filtered by Distance filters from device: 358735071212806 with id: 2
I would recommend you to read documentation for the parameter.
ok thankyou...i will report to you the result
Hi Anton,
sorry...i've confused what attribut name must type to the filter.skipAttributes ? maybe you can give example?...i have try type name atribute 'Command result' and 'even' but still does'nt show on the web. thanks
I've read https://www.traccar.org/documentation/events/ and i've already make attribute 'result" but still command result can't show
Is it still filtered?
Yes Anton
It means that something is still misconfigured... or maybe you just haven't restarted service after changing config.
it happened to me too.
How did you added result as attribute?
Regards,
Dear Anton,
sorry for my very late replly...this is my config
<properties>
<entry key='config.default'>./conf/default.xml</entry>
<!--
This is the main configuration file. All your configuration parameters should be placed in this file.
Default configuration parameters are located in the "default.xml" file. You should not modify it to avoid issues
with upgrading to a new version. Parameters in the main config file override values in the default file. Do not
remove "config.default" parameter from this file unless you know what you are doing.
For list of available parameters see following page: https://www.traccar.org/configuration-file/
-->
<entry key='database.driver'>com.mysql.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://localhost:3306/db?useSSL=false&allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEn$
<entry key='database.user'>db</entry>
<entry key='database.password'>psswd</entry>
<entry key='gt06.timezone'>0</entry>
<entry key='filter.enable'>true</entry>
<entry key='filter.invalid'>true</entry>
<entry key='filter.zero'>true</entry>
<entry key='filter.distance'>20</entry>
<entry key='filter.skipAttributes'>result</entry>
<entry key='mail.smtp.host'>smtp.gmail.com</entry>
<entry key='mail.smtp.port'>587</entry>
<entry key='mail.smtp.starttls.enable'>true</entry>
<entry key='mail.smtp.from'>smtplgmail</entry>
<entry key='mail.smtp.auth'>true</entry>
<entry key='mail.smtp.username'>gmail email</entry>
<entry key='mail.smtp.password'>pswd</entry>
</properties>
@Anton...I've try and made sure...if i'm add filter.distance and try send command to device by web/app.... The command successfull to execution but web not give'nt show comment result (last time i said notification).