Traccar XML Setup

Luke williams 7 years ago

Hi Anton
Can you please help with CELL ID, as I cant seem to get it to work

I have samsung phone, have turned off GPS and set to use network only

Though I dont seem to get a location

I also had several filters enabled before I back up to stop GPS Bounce and the Trackers sometimes showing wrong location, Though I forgot to backup the Traccar XML file, so had to start from new.

can you please advise what I need to paste in to filter same

I have included my XML traccar File below

Thank you

<properties>

<!-- EMAIL SETTINGS -->
<entry key='mail.smtp.host'>XXXXXXXXXXXX</entry>
<entry key='mail.smtp.port'>587</entry>
<entry key='mail.smtp.starttls.enable'>true</entry>
<entry key='mail.smtp.from'>XXXXXXXXXXXX</entry>
<entry key='mail.smtp.auth'>true</entry>
<entry key='mail.smtp.username'>aXXXXXXXXXXXX</entry>
<entry key='mail.smtp.password'>XXXXXXXXXXXX</entry>

<entry key='sms.smpp.enable'>true</entry>
<entry key='sms.smpp.host'>smsglobal.com</entry>
<entry key='sms.smpp.port'>1775</entry>
<entry key='sms.smpp.username'>XXXXXXXXXXXX</entry>
<entry key='sms.smpp.password'>XXXXXXXXXXXX</entry>
<entry key='sms.smpp.notificationsCharset'>GSM</entry>
<entry key='sms.smpp.notificationsDataCoding'>0</entry>
<entry key='sms.smpp.sourceAddress'>XXXXXXXXXXXX</entry>


    <!-- SERVER CONFIG -->

    <entry key='web.enable'>true</entry>
    <entry key='web.port'>80</entry>
    <entry key='web.path'>./web</entry>

    <entry key='geocoder.enable'>true</entry>
    <!--<entry key='geocoder.type'>google</entry> -->
    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>nominatim</entry>
    <entry key='geocoder.url'>https://locationiq.org/v1/reverse.php</entry>
    <entry key='geocoder.key'>XXXXXXXXXXXX</entry>
    
    <entry key='geolocation.enable'>true</entry>
   <entry key='geolocation.type'>nominatim</entry>
   <entry key='geolocation.key'>XXXXXXXXXXXX</entry>

    <entry key='location.processInvalidPositions'>true</entry>

    <entry key='logger.enable'>true</entry>
    <entry key='logger.level'>all</entry>
    <entry key='logger.file'>./logs/tracker-server.log</entry>

    <entry key='event.enable'>true</entry>
    <entry key='event.overspeedHandler'>true</entry>
    <entry key='event.overspeed.notRepeat'>true</entry>
    <entry key='event.motionHandler'>true</entry>
    <entry key='event.geofenceHandler'>true</entry>
    <entry key='event.alertHandler'>true</entry>
    <entry key='event.ignitionHandler'>true</entry>
    <entry key='event.statusHandler'>true</entry>
    <entry key='event.maintenanceHandler'>true</entry>
Anton Tananaev7 years ago

Please carefully read documentation and double-check all the configuration that you have:

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

I can see at least one problem straight away. The geolocation.type value is invalid.

Luke williams 7 years ago

I have read the documentation and still confused, hence my post here

if there is a problem with the The geolocation.type value is invalid.

can you please provide me with what I need to add, or change?

Luke williams 7 years ago

geolocation.type config
Provider to use for LBS location. Available options: mozilla and opencellid. By default opencellid is used. ?????????????

Luke williams 7 years ago

So I need use opencell id?

Anton Tananaev7 years ago

It clearly says that there are two possible values "mozilla" and "opencellid". By default it will use "opencellid" if you don't specify anything. Can you please explain where "nominatim" value came from? It does not present in the documentation for "geolocation.type".

Luke williams 7 years ago

Anton your reply still confuses me

maybe I am silly man?

if i have this not right would you possibly tell me what I need to add? to get his working.

   <!-- Opencellid -->
    <entry key='location.enable'>true</entry>
    <entry key='location.key'>my key</entry>
    <entry key='location.mcc'>310</entry>
    <entry key='location.mnc'>850</entry>

i found above on another thread.

<entry key='location.enable'>true</entry>
    <entry key='location.key'>API KEY</entry>
    <entry key='location.mcc'>260</entry>
    <entry key='location.mnc'>2</entry>

again I found above on another thread?

<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>google</entry>
<entry key='geolocation.enable'>true</entry>
<entry key='geolocation.type'>google</entry>
<entry key='geolocation.key'>GOOGLE_KEY</entry>     
<entry key='geolocation.processInvalidPositions'>true</entry>

so after hours of searching and cutting pasting, I still no wiser

if you could say, paste this in....get a key, paste here etc, I may understand

Anton Tananaev7 years ago

I'm not sure why you are searching other threads. Most likely they contain outdated information. I already gave you the link to the official documentation with all the information you need. And I even told you what you have to use.

Also, you still answered my question. Where did following line come from?

<entry key='geolocation.type'>nominatim</entry>
Luke williams 7 years ago

from here

<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>nominatim</entry>
<entry key='geocoder.url'>http://locationiq.org/v1/reverse</entry&gt;
<entry key='geocoder.key'>My Key Api</entry>

as was trying use say KEY

Yes I am silly

but still no wiser

if you could explain in lam man terms

ok you doing this wrong, as in you need to replace this with that, as sending me to the docs, dont help if i am still confused

Luke williams 7 years ago

When i go to google and look at open cell id it takes me to
https://opencellid.org/

Then I go to sign-in it takes me to
https://unwiredlabs.com/dashboard/login?ref=opencellid

Which appears to be the key i already have from them,

as I see you have a post yourself saying

Anton Tananaev a year ago
I believe LocationIQ is just a Nominatim server.

This is where I am so confused, so if i need a key from open cell id where do I get it? or is it same server?

Anton Tananaev7 years ago

Are you trying to set up GEOCODING or GEOLOCATION?

Luke williams 7 years ago

I have traccar working with GPS, its the cell ID I would like to get working, If the tracker has no GPS fix, I can get locations from the cell tower, and use units that have no GPS, I have read on the forum many asking about this, so i assume its a simple enough task of cut and paste in to the traccar file, if I knew what to cut and paste.

Luke williams 7 years ago

Anton
I replied to your question

Are you trying to set up GEOCODING or GEOLOCATION?

I have traccar working with GPS, its the cell ID I would like to get working, If the tracker has no GPS fix, I can get locations from the cell tower, and use units that have no GPS, I have read on the forum many asking about this, so i assume its a simple enough task of cut and paste in to the traccar file, if I knew what to cut and paste.

Luke williams 7 years ago

Anton I have replied to your question here, Have I to PAY you to help me here?

Anton Tananaev7 years ago

If you are interested in paid support please send an email to support address.