Hi, I configured the conf file like this
<entry key='forward.enable'>true</entry>
<entry key='forward.type'>url</entry>
<entry key='forward.url'>http://localhost:8081/api/v1/ingest/traccar?uniqueId={uniqueId}&lat={latitude}&lon={longitude}&speed={speed}&time={fixTime}</entry>
<entry key='forward.header'>X-Traccar-Token: My_TOKEN_found_in_Settings</entry>
I ran the server like this:
java -Dtraccar.config=setup/traccar.xml -jar target/tracker-server.jar
Get some logs
2025-08-12 18:55:50 INFO: [T769cfc06: huabao < IP_ADD] 7e0200002c019176484064000900000000100000e08d99010aab4900000000000025081300241801040000006030011f31010082020082c17e
2025-08-12 18:55:50 INFO: [T769cfc06: huabao > IP_ADD] 7e8001011501917648406400000009020000057e
2025-08-12 18:55:51 INFO: [T769cfc06] id: 111111111111111, time: 2025-08-12 18:23:48, lat: XXXXX, lon: YYYYY, course: 0.0
2025-08-12 18:55:53 INFO: [T769cfc06] id: 111111111111111, time: 2025-08-12 18:24:18, lat: XXXXX, lon: YYYYY, course: 0.0
2025-08-12 18:55:53 INFO: [T769cfc06] id: 111111111111111, time: 2025-08-12 18:54:22, lat: XXXXX, lon: -YYYYY, course: 0.0
2025-08-12 18:55:54 INFO: [T769cfc06: huabao < IP_ADD] 7e0200002c0191764840640016000000000000000ade908d99010aab4900000000000025081300492101040000006030011731010082020080807e
2025-08-12 18:55:54 INFO: [T769cfc06: huabao > IP_ADD] 7e80010005019176433064000000160200001a7e
2025-08-12 18:55:57 INFO: [T769cfc06] id: 111111111111111, time: 2025-08-12 18:49:21, lat: XXXXX, lon: YYYYY 3, course: 0.0
but nothing happens in my endpoint that I already tested with curl and is working
what did I do wrong ?
thanks in advance
I also tried with the same config file in /opt/traccar/conf, but same issue. data are not forwarded to API
It's finally working. The problem was the &
, that should be &
And I needed to put the config parameters in the debug.xml file.
Hi, I configured the conf file like this
<entry key='forward.enable'>true</entry> <entry key='forward.type'>url</entry> <entry key='forward.url'>http://localhost:8081/api/v1/ingest/traccar?uniqueId={uniqueId}&lat={latitude}&lon={longitude}&speed={speed}&time={fixTime}</entry> <entry key='forward.header'>X-Traccar-Token: My_TOKEN_found_in_Settings</entry>
I ran the server like this:
java -Dtraccar.config=setup/traccar.xml -jar target/tracker-server.jar
Get some logs
but nothing happens in my endpoint that I already tested with curl and is working
what did I do wrong ?
thanks in advance