Your config file looks fine to me. There were no changes to the events since 3.7, so they should work if they worked on 3.7.
Even with that custom .jar file you provided?
Do you think it's a device fault not sending the correct geozone messages?
Geozones are calculated on the server. Have you linked your geozones to device(s)?
That's what I thought.
Geozones are linked.
mysql> select * from devices;
+----+--------------------------------+-----------------+---------------------+------------+---------+------------+
| id | name | uniqueid | lastupdate | positionid | groupid | attributes |
+----+--------------------------------+-----------------+---------------------+------------+---------+------------+
| 1 | Peter Black - Mazda BT50 | 355855050440658 | 2016-10-17 19:53:23 | 12546 | 1 | {} |
| 4 | Ricky Grouch - Subaru Forester | 355855050452430 | 2016-10-17 20:56:05 | 12588 | 1 | {} |
| 5 | Rob Walker - Toyota Hiace | 355855050453552 | NULL | NULL | NULL | {} |
| 7 | James Blake | 355855050443611 | 2016-10-17 21:07:01 | 12580 | NULL | {} |
+----+--------------------------------+-----------------+---------------------+------------+---------+------------+
4 rows in set (0.00 sec)
mysql> select * from device_geofence;
+----------+------------+
| deviceid | geofenceid |
+----------+------------+
| 1 | 1 |
+----------+------------+
1 row in set (0.00 sec)
mysql> select * from group_geofence;
+---------+------------+
| groupid | geofenceid |
+---------+------------+
| 1 | 1 |
+---------+------------+
1 row in set (0.00 sec)
mysql> select * from geofences;
+----+------------------+-------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+
| id | name | description | area | attributes |
+----+------------------+-------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+
| 1 | Collaroy Jobsite | | POLYGON((-33.7418566598697 151.29668872015384, -33.742383029600816 151.29810492651373, -33.74322164588944 151.29709641592413, -33.742525773377935 151.2959806169739, -33.7418566598697 151.29668872015384)) | {} |
+----+------------------+-------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+
1 row in set (0.00 sec)
And you are sure that device crossed the geozone boundary?
That device definately has crossed the geozone many times.
There's quite a few of these errors:
2016-10-17 05:56:07 WARN: [58B10CAD] error - For input string: "?^@" - NumberFormatException (... < HuaShengProtocolDecoder:107 < ExtendedObjectDecoder:58 < ...)
2016-10-17 05:56:07 INFO: [58B10CAD] disconnected
2016-10-17 05:57:19 INFO: [B4F44981] connected
2016-10-17 05:57:54 DEBUG: [B4F44981: 5111 < 49.180.160.247] HEX: c000000053aa02000000000017000100143347315f48312e315f56312e30392e54000300133335353835353035303434303635380004000b35313230303030000200154d4d30554e593057343030393037303137c0c000000053aa02000000000018000100143347315f48312e315f56312e30392e54000300133335353835353035303434303635380004000b35313230303030000200154d4d30554e593057343030393037303137c0
I can take a look at your configuration if you provide access details. You can send them to my email.
As for errors, it looks like there are some problems with decoding messages from your tracker.
Would you like SSH access to my server?
I also uninstalled & re-installed traccar 3.7, using the default .jar file and the below config. I am now getting device online & offline events, but no geozone events.
<!-- SERVER CONFIG -->
<entry key='web.enable'>true</entry>
<entry key='web.port'>8082</entry>
<entry key='web.path'>/opt/traccar/web</entry>
<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>google</entry>
<entry key='geocoder.processInvalidPositions'>true</entry>
<entry key='logger.enable'>true</entry>
<entry key='logger.level'>all</entry>
<entry key='logger.file'>/opt/traccar/logs/tracker-server.log</entry>
<entry key='filter.enable'>true</entry>
<entry key='filter.zero'>true</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>
<!-- DATABASE CONFIG -->
<entry key='database.driver'>com.mysql.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://localhost:3306/**OMITTED**?allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=ANSI_QUOTES</entry>
<entry key='database.user'>**OMITTED**</entry>
<entry key='database.password'>**OMITTED**</entry>
<entry key='database.ignoreUnknown'>true</entry>
I did not have notification 'Send via Web' enabled at the time, but I don't believe that should prevent it from appearing within reports > events.
There's also a few device online/offline events overnight when the car was parked for 8+ hours with the engine turned off. See pic below for move info:
I need access to web interface to check everything there first.
I've emailed you the web interface details.
any idea regarding geozone events not being triggered?
Just tested it myself and geozone events are indeed not triggered. I suspect that you have some problem with configuration.
Reverted to 3.7 default traccar.xml and tested geozone alerts with my Samsung Galaxy S3. The alerts work.
With HS-3000G the geozone alerts do not work.
'Device is online' is the only alert I get for the HS-3000G
I have re-enabled the only keys I use:
<entry key='geocoder.processInvalidPositions'>true</entry>
<entry key='filter.enable'>true</entry>
<entry key='filter.zero'>true</entry>
I'm having an issue with my events not being reported within traccar web gui.
At one point I was getting device online/offline only, which was on traccar 3.7 but since I updated to a custom .jar file and made some config changes I receive no more event notifications.
I would particularly love to have the geozone alerts working.
Device is HS-3000G on HuaSheng protocol.
I've enabled a few extra config flags, but they have not helped.
Current config file:
.jar file (as per this thread: https://www.traccar.org/forums/topic/traccar-3-7-trips-report-distance-showing-negative-distance/)
Any suggestions?
Thanks!