Server 3.14

tambiu7 years ago

Hi, In this new version 3.14 , I could not get the ignition status, I had 3.13 and it was working fine, so I have created a new server 3.14, and copied my default.xml from 3.13 to 3.14, but I am not getting the ignition status.

My tracker is gt06.

<entry key='event.enable'>true</entry>
<entry key='processing.computedAttributes.enable'>true</entry>
<entry key='processing.copyAttributes'>power,ignition,battery</entry>
<entry key='gt06.alternative'>true</entry>
<entry key='gt06.enable'>true</entry>
<entry key='gt06.timezone'>0</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

You should never copy default.xml. Your config is wrong.

tambiu7 years ago

Alright, so, I will use the original default.xml from 3.14, but how can I set ignition status in the 3.14 ?

tambiu7 years ago

I have followed this instructions https://www.traccar.org/upgrading-traccar/

Make a database backup
Backup your config file (if modified)
Remove old version of Traccar
Install new version of Traccar
Restore config file (if applicable)
Start Traccar service

Anton Tananaev7 years ago

You should never modify default.xml in the first place. All your custom configuration should be in traccar.xml.

tambiu7 years ago

sorry, my mistake, so , now I did correctly, My custom config in traccar.xml , and I did not get ignition status yet. Can you give the directions to resolve this ?

 <entry key="config.default">./conf/default.xml</entry>
    <entry key='web.port'>80</entry>
    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>nominatim</entry>
    <entry key='geocoder.url'>http://xxxxxxxxxx/nominatim/reverse.php</entry>
    <entry key='geocoder.processInvalidPositions'>false</entry>
    <entry key='processing.copyAttributes.enable'>true</entry>
    <entry key='processing.copyAttributes'>power,ignition,battery</entry>
    <entry key='processing.remoteAddress.enable'>true</entry>
    <entry key='gt06.alternative'>true</entry>
    <entry key='gt06.enable'>true</entry>
    <entry key='gt06.timezone'>0</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>
    <entry key="mail.smtp.host">smtp.gmail.com</entry>
    <entry key="mail.smtp.port">465</entry>
    <entry key="mail.smtp.ssl.enable">true</entry>
    <entry key="mail.smtp.from">xxxxxx</entry>
    <entry key="mail.smtp.auth">true</entry>
    <entry key="mail.smtp.username">xxxxxx</entry>
    <entry key="mail.smtp.password">xxxx</entry>
    <entry key="filter.enable">true</entry>
    <entry key="filter.invalid">true</entry>
    <entry key="filter.zero">true</entry>
    <entry key="filter.duplicate">true</entry>
    <entry key="filter.maxSpeed">25000</entry>
    <entry key="filter.distance">10</entry>
    <entry key='database.ignoreUnknown'>false</entry>
    <entry key='database.registerUnknown'>true</entry>
    <entry key='database.registerUnknown.defaultGroupId'>1</entry>
    <entry key='database.positionsHistoryDays'>30</entry>

<entry key='database.driver'>com.mysql.jdbc.Driver</entry>
    <entry key='database.url'>jdbc:mysql://127.0.0.1:3306/traccar?useSSL=false&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>
    <entry key='database.user'>root</entry>
    <entry key='database.password'>xxxxxxx</entry>
Anton Tananaev7 years ago

Most likely it means that your device doesn't send ignition.

By the way, I think you should revise your configuration. There are some parameters that have been removed from Traccar. Some for a very long time.

tambiu7 years ago

ok, thank you Anton