Traccar Server Customization

smsoousa8 years ago

Hello Anton, first of all thank you for the wonderful tool you shared with us, just users. My question is as follows, I want to customize the system for me, type how to change colors, change login screen, etc. etc. Would you like to know if I can make these changes and save the source code? In case I need it in the future I can reinstall the system without losing the changes I made! Forgive me for English, I'm Brazilian and I needed to use google translator:)

Anton Tananaev8 years ago

I would recommend to read ExtJS documentation if you want to know how to modify the interface:

http://docs.sencha.com/extjs/6.2.0/index.html

Of course you can save the source code. Not sure why you even ask this question. Why wouldn't you be able to save it?

smsoousa8 years ago

Okay, I'll take a closer look. It's because I'm starting now in the tracar project, as I still do not know much, I ask for help from others. What I was told was that the database changes with each new installation and that is why the code after being installed can not be saved to be reused. What should I do in this case Anton? I installed the file traccar.run, the folders that are generated in the opt / tract I saved, when I want to reinstall I install again by traccar.run and replace the files contained in the folder opt / traccar by those that I modified? Thank you!

Anton Tananaev8 years ago

Sorry, but your questions make less and less sense. What do you mean by "database changes with new installation"? How is it related to the code?

You have compile everything before replacing any files.

smsoousa8 years ago

In fact what I need is to know how to modify the code and save the modified files to reuse them. And how would I do to reuse them, by replacing files, by compiling etc. I'm sorry for ignorance.

Anton Tananaev8 years ago

Are you asking how to save files? If you don't even have that basic computer skills, I won't recommend trying to do anything yourself.

smsoousa8 years ago

Good evening, Anton, I was able to do what I needed. Thank you.
I have another question, does the latest version of traccar already offer blocking commands? Because I am now using the web version ui that provides some reporting features and also a good list of commands. However, I do not want to resort to this, since the latest version of tracing is much better than the web ui, but an important point is to send blocking commands, because its new interface is much better and I intend to use it since the Commands work.

Anton Tananaev8 years ago

Yes, commands have been available for a long time. Actually, for longer than web UI had it.

smsoousa8 years ago

Perfect, I still do not include a rastsreador to verify the actual operation, in the web ui registering a demo user is already released the field for sending even though not working, however accessing the original trace even registering a demo user the button for sending command I seem to be disabled. Can this user not be enabled by admin for sending commands? So is the button disabled on the panel? Do you have any plans to include the address where the vehicle is located? Because only the longitude and latitude map coordinates appear

Anton Tananaev8 years ago

Button is disabled if you haven't selected a device, or if device is offline. It's not disabled on the demo servers.

What do you mean by plans? Address is displayed if you have reverse geocoder configured. It's not configured on the demo servers because geocoding services are expensive.

smsoousa8 years ago

Good afternoon, Anton.
I tested the commands and they are all ok, now I have not been able to configure the geocoder so that the address appears on the system for me. I would like to implement the google geocoder free, because it will serve me well, however, I do not know in which file to include the code:

<Entry key = 'geocoder.enable'> true </ entry>
<Entry key = 'geocoder.type'> google </ entry>

Can you help me set it up?

Anton Tananaev8 years ago

In the config file:

https://www.traccar.org/configuration-file/

Note that you might not get any results with free Google service. It seems like Google started to ban Traccar service in many cases.

smsoousa8 years ago

What file to configure would be traccar.xml? Having to include the lines of code in the file traccar.xml?

Anton Tananaev8 years ago

English please.

smsoousa8 years ago

What is the best of these methods:

Google
Gisgraphy
Nominatim
OpenCage Geocoder
Geocode Farm

What file to configure would be traccar.xml? Having to include the lines of code in the file traccar.xml?