Hello. How I can add new devices right inside a database by executing sql queries (bypass traccar server)?
When I creating a new device using web UI I see that it is performing only one POST request:
fetch("http://localhost:8082/api/devices", {
"headers": {
"content-type": "application/json",
"Referer": "http://localhost:8082/settings/device",
"Referrer-Policy": "strict-origin-when-cross-origin"
},
"body": "{\"name\":\"TestCar\",\"uniqueId\":\"123456789\"}",
"method": "POST"
});
I tried to add a new device by this simple query:
INSERT INTO tc_devices (uniqueid, name) VALUES ('123456789', 'TestCar');
But nothing happed, device even not listed in list of devices...
So what kind of query I should execute to add a new device and successfully associate new messages with it?
It's created you need to link with user you can find this device on connections
Hello. How I can add new devices right inside a database by executing sql queries (bypass traccar server)?
When I creating a new device using web UI I see that it is performing only one POST request:
fetch("http://localhost:8082/api/devices", { "headers": { "content-type": "application/json", "Referer": "http://localhost:8082/settings/device", "Referrer-Policy": "strict-origin-when-cross-origin" }, "body": "{\"name\":\"TestCar\",\"uniqueId\":\"123456789\"}", "method": "POST" });
I tried to add a new device by this simple query:
But nothing happed, device even not listed in list of devices...
So what kind of query I should execute to add a new device and successfully associate new messages with it?