Send command on geofence event

Kjetil Pedersen3 years ago

Hello!

Is there a way to send a command to a tracker when it enter / leve geofence?

Anton Tananaev3 years ago

Not out of the box, but you can probably set up some external scripts to do it.

Viktora year ago

Do you plan to implement sending commands on events?

Anton Tananaeva year ago

It's already implemented on master.

Viktora year ago

Please tell me how to implement on my server sending the command "turn off the ignition" when leaving the zone

Подскажите пожалуйста как реализовать на своем сервере отправку команды "выключить зажигание" при выходе за пределы зоны

Anton Tananaeva year ago

You can try preview:

https://www.traccar.org/preview/

You need to enable "command" notificator and then create a notification with the command you want to use.

traccargps1a year ago

Hi Anton,

I downloaded the preview version but I can't find the option to notify by sending a command.
server sending the command "turn off the ignition" when leaving the zone .

Anton Tananaeva year ago

It's a notification type. You need to create a saved command first though.

traccargps1a year ago

hi,

I have commands saved. In notification when I create geofence entered in channel the command option does not appear.
Only SMS, E-mail and Web appear.

Anton Tananaeva year ago

It means you probably have some issue in the configuration file.

traccargps1a year ago

Add the command to traccar.xml and it worked. Thanks!

Paul4 months ago

Hi traccargps1, what did you put into the traccar.xml. Im having trouble setting up commands , thanks