Can I use /api/command with traccar when web is disabled

naji 9 years ago

I am using traccar as a backend server, where web is disabled , How can I communicate with devices to send and receive commands . I know there is /api/command but that requires web to be enabled.

what the right way to reach api commands without web enabled .

Anton Tananaev 9 years ago

What you are asking is not possible. You have to enable WEB to use WEB API.

naji 9 years ago

Thank You Anton;
If I managed to reach the server with web enabled and my database is completely different from traccar default one. Can I communicate with the tracker unit . if yes what parameters required to execute commands on device and receive response .

Anton Tananaev 9 years ago

As long as you map all the required queries, it should work.

naji 9 years ago

where can I find the required queries? in the api documentation the required to execute the /api/command only the deviceId ,commandType and attributes. who's going to tell the server what protocol the device is using ? how can the server for example talk to gt06 or tk103.

Anton Tananaev 9 years ago

All queries are in the default.xml config file.

Server knows what protocol devices use obviously. Otherwise it won't be able to decode any data.

naji 9 years ago

It seems a bit difficult because of differences between databases, but anyway I will try it.

thank you for your help .