Getting events from the api doesn't incude geofenceEnter and geofenceExit

Ram Agmon6 years ago

Hi.

I am running traccar server for arm (pi 3) and it is working great. I am trying to get the geo fence events from the api using curl:

curl --user 'admin:admin' 'localhost:8082/api/reports/events?groupId=1&from=2018-09-08T18:30:00Z&to=2019-11-10T23:40:00Z' > 1.xml

I am getting the xml file and it includes the deviceOnline, deviceOffline and deviceStopped events for the all the groups members but not any geo fance events.

I tried to use the &type with geofenceEnter but it is still empty (the type=deviceOffline is working fine)

Ram Agmon6 years ago

It is working with other user (not the admin)

Anton Tananaev6 years ago

You have to provide accept header.