


Take real-time traffic information into account when assigning the most appropriate driver to the next job, or ensure they take a predefined route, that you send directly to their Driver Terminal. Retrofit doesn't support anything like that, so you should use OkHttp directly: Request request new Request.Builder ().url (retrofit.baseUrl ().url ().toString () + 'api/socket').build () webSocket WebSocketCall.create (client, request. It makes your fleet performance data visible, so you know current status, and also when and where to take action when it is needed.
#TRACCAR INSERT DEVICE DIRECTLY INTO DATABASE HOW TO#
"Authorization": "Basic " + btoa("admin:admin")Īnd 1 question again, how to post data? i try like this: To get live updates you should be using WebSocket connection to Traccar server. Thanks to anton tananaev, i solve this problem, like this: so anyone can you help me solve this problem. i suspect that it is not a pure javascript, if it so can u guide me to write the implementation using javascript. He said it is javascript, so i try implement in javascript way: īut i get error in console. Var uniqueId = '122323223232' // usually this is the device imei I try to answer short questions too, but it. If you spot a bug, feel free to comment below. Launch 4a-retrieve.php and 4b-retrieve to retrieve the image from the database. Launch 3-upload.php and upload the test potato.jpg image file. Change the database settings in 2-connect-db.php to your own. At that post, he write some code, like this: // find All devices - GET request Create a dummy database and import 1-database.sql. I have done research on google and many other page, that i can extract the data via traccar api here so i do next research how to use it, and finally find this answer here by mvalverde.
