Adding my php file to traccar web interface

saikrupa20127 years ago

i have written a php code to calculate the distance between two devices .
i have retrieved the (lat,lon) points of two devices by importing traccar tables to mysql db.
how to add this php file to traccar web interface .
plese help

Anton Tananaev7 years ago

You can't. Traccar doesn't use PHP.

saikrupa20127 years ago

okay . so i did the same using nodejs. now how do i add this to traccar web interface .
i have tried to understand from traccar support documentation .
link
compiling web interface part ...
is this the right way..
please help.

Anton Tananaev7 years ago

Traccar doesn't use nodejs either.

saikrupa20127 years ago

how do I add my feature -calculating distance between two devices to the traccar web interface?
i want to add a button "calculate distance" which i will handle to do appropriate functionality.

which language should i write the code in?

Anton Tananaev7 years ago

Traccar back-end is written in Java. Front-end is in JavaScript.

saikrupa20127 years ago

Is it possible to customize traccar Web UI to add a button?
can u please point me to that file.

Anton Tananaev7 years ago

If you need help with customisation we provide provide professional services:

https://www.traccar.org/product/professional-services/

saikrupa20127 years ago

I only want to add a button to the Traccar web interface(UI) , which is not much of customization .
It will be really helpful if u can point me to the file where UI can be modified .
thanks.

saikrupa20127 years ago

so traccar uses EXTJS framework .
after i download the source code of Traccar Web interface .
what are the sencha cmd commands to run the Traccar web app ?
so that i can do my customizations and check .

pls help

Anton Tananaev7 years ago

You don't need any sencha cmd commands.