I’ve got hAP ac2 which will live in my car together with 3G modem and a GPS receiver.
It’s all configured, I have internet and VPN tunnel back to home, GPS data is also getting through.
Now I need to send the GPS data to the Traccar server.
There is a script on wiki:
The problem is that the values returned by the tik GPS are not in a decimal value.
You need the data in a decimal value to post to traccar. Same with altitude and speed. For those you need to remove m and km/h from the data.
Just tested with Postman and after converting the latitude and longtitude to decimal value it would post
When Mikrotik updates the GPS package and enables it to output the location data to a friendly format it should work fine without requiring a middleman server to translate the data.
Currently I use Particle Electrons to send location data to Traccar and it works great. However I would love to use the LtAP as well.
I’ve got a working script since last night.
Started working on it and took some code snips from other scripts, including a github page I’ve found to be very helpfull, and the script translates the coordinates - outputted by /gps monitor - to decimal coordinates.
I’ve uploaded the script to github, but will be making some changes.
The tracket ID is the same as the LTE IMEI address
I’ll be experimenting with the date-time so that can also be uploaded to traccar.