traccar / traccar-web

Traccar GPS Tracking System
https://www.traccar.org
Apache License 2.0
827 stars 1.14k forks source link

admin Q? #177

Closed yorkiebarkid closed 8 years ago

yorkiebarkid commented 10 years ago

Hi is it possible to allow the admin to view all devices that the users have add like a master account?

vitalidze commented 10 years ago

AFAIK no. Moreover, nevertheless the user is admin he can only see devices added by himself. Admin can change global settings and create new users.

pallavt commented 10 years ago

A dirty hack is to login into your SQL server and assign all the devices you want to view to admin

yorkiebarkid commented 10 years ago

What's the address tab used for on the web interface? Is it possible to set a geo fence on the interface?

vitalidze commented 10 years ago

Where do you see 'address tab'? Address field is used for geocoding, i.e. it can find address by coordinates.

Currently it is not possible to set geo fence.

yorkiebarkid commented 10 years ago

how do you geocode the field? and thanks for the reply

vitalidze commented 10 years ago

You can enable it in configuration file by editing following line:

 <!-- Geocoder options -->
    <entry key='geocoder.enable'>false</entry>

Change false to true and restart traccar service.

Also you may change geocoding provider by updating next lines:

    <entry key='geocoder.type'>nominatim</entry>
    <entry key='geocoder.url'>http://nominatim.openstreetmap.org/reverse</entry>
yorkiebarkid commented 10 years ago

thanks i have looked in the config file and theres no line to change do i just add it?

vitalidze commented 10 years ago

Yep. Please note all three lines should be present for geocoding to work.

yorkiebarkid commented 10 years ago

whats the config file .extension? i changed it to txt and forgot what it was lol #been a long day

vitalidze commented 10 years ago

It's cfg

yorkiebarkid commented 10 years ago

i have saved the file and restarted traccar but the field is still blank?

vitalidze commented 10 years ago

It should be applied to all newly added positions, also it's possible that it cannot find address for your concrete point. You can check this out using http://nominatim.openstreetmap.org/reverse?format=xml&lon=36.091033&lat=56.08409&zoom=18&addressdetails=0 URL with your longitude and latitude as lon and lat parameters accordingly.

yorkiebarkid commented 10 years ago

is it the opt/conf/traccar.cfg file that im adding itto or is this the wrong file?

vitalidze commented 10 years ago

You are right, on unix systems it should be in /opt/traccar/conf/traccar.cfg. AFAIK, on windows it is under conf subfolder of traccar installation folder.

yorkiebarkid commented 10 years ago

can you place POI ?

vitalidze commented 10 years ago

No, there are no POI in traccar-web. You know, It's quite simple web UI. FYI you can use more feature-rich OpenGTS web UI with traccar database. I don't know about POI in OpenGTS, please take a look at their site for additional info.

medicdavid commented 10 years ago

I also cannot seem to get geocoding to work. I can paste the example above and get an XML response of valid data. Where should I see this geocoding result data?

vitalidze commented 10 years ago

You should see results in address field of all newly added records since you enabled geocoding. The link above is just an example for you to test whether your concrete position can be reverse-geocoded, you should place your own latitude and longitude parameters to the URL string.

brunocgs commented 10 years ago

Hi Vitalidze, how should be installed the web ui from OpenGTS on the trackar databased? Is just substitute the according traccar-web.war with the OpenGTS version in same folder and name? Sorry for the ignorance, but I am pretty new to this system. Thanks!

vitalidze commented 10 years ago

The workflow is quite different. Traccar and OpenGTS should be installed separately (i.e. in two different folders). You should configure traccar to post data to OpenGTS database per these instructions. Then you can access data using OpenGTS web UI.

vitalidze commented 10 years ago

Also per main question of this issue I have implemented following functionality in my fork:

brunocgs commented 10 years ago

Very nice! Is that fork the same file you pointed me to get? This is something was missing on traccar.. very good to know it.

vitalidze commented 10 years ago

No, it doesn't contain this. I have sent you link to updated package by email.

tananaev commented 8 years ago

Starting from version 3.2 of Traccar, admin users can assign devices to any user. So, it should be possible to see all devices as an admin.