How to setup Traccar Server using web socket ?

Hi, I want to ask about how to setup Traccar Server using web socket into database MySQL ? Because I want to make a project is connect to your Traccar Server and then get data from Traccar these are longitude and latitude, and then send data using web socket into database. Can you help me how to setup it ?

Thank you so much!

Anton Tananaev9 years ago

I don't think MySQL supports WebSockets. Can you please explain more clearly what you are trying to achieve and why do you want to use Websockets.

So what should I do to get data from your Traccar Server ?
Yes, I want to make tracking vehicle using GPS Tracker type GT06N, and then get data such as longitude and latitude from your Traccar Server, and then saving it to my database. I also make web server.
Web socket use to connect it with my web server. Can you help me ?

Thank you so much.

Anton Tananaev9 years ago

You can configure Traccar to write data directly into your database. All queries are in the config file.

Can you show me the program to write directly to my database ?

Anton Tananaev9 years ago

You can take a look at OpenGTS integration example:

https://www.traccar.org/opengts/

Should I use both openGTS and Traccar in my project ? Why ?

Anton Tananaev9 years ago

No, you don't need to use OpenGTS. It's just a example of how to write data directly into a third party database.