Traccar Server 3.4

beryindo8 years ago

Why traccar 3.4 no icon ?
Any one can help me, how apk android code to stop the engine and start the engine?

Anton Tananaev8 years ago

There is an icon in 3.4.

You can use Traccar API to send commands from your Android app.

beryindo8 years ago

Where icon car, motorcylce or etc ? just arrow :)
any tutorial ? how to user traccar api ?

thanks

Anton Tananaev8 years ago

It never had icons.

To learn more about API click on the link in my previous comment.

beryindo8 years ago

ok thank you

beryindo8 years ago

I do not undestand

POST /api/commands HTTP/1.1
Host: 192.168.0.1:8082
Connection: keep-alive
Content-Length: 44
Origin: http://192.168.0.1:8082
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36
Content-Type: application/json
Accept: */*
Referer: http://192.168.0.1:8082/
Accept-Encoding: gzip, deflate
Accept-Language: id-ID,id;q=0.8,en-US;q=0.6,en;q=0.4
Cookie: JSESSIONID=p038pwdic9881wrtjo9a1pt7i

{"deviceId":2,"type":"engineResume","id":-2}
HTTP/1.1 200 OK
Date: Sat, 26 Mar 2016 22:15:22 GMT
Content-Type: application/json
Access-Control-Allow-Headers: origin, content-type, accept, authorization
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Origin: *
Content-Length: 52
Server: Jetty(9.2.15.v20160210)

{"deviceId":2,"type":"engineResume","attributes":{}}

any one help me ? basic driver api ?

Anton Tananaev8 years ago

What exactly you don't understand?

beryindo8 years ago

basic command, from api.
example

http://192.168.0.1:8082/api/uniqeid=8989988988888&DeviceID=2&engineResume=2

but I don't know basic command api traccar, whether there are examples ?

Anton Tananaev8 years ago

You just provided an example yourself in previous comment.

bharat8 years ago

im using traccar 3.4 version and i modified that using .war file..so nw i wanna change only foreground color...that blue one so hw ca i do this plzz help

Anton Tananaev8 years ago

@bharat, Traccar doesn't use war file since version 3.0. If you are using UI mod, you need to contact the mod's author for help.