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.

Viktor2 years ago

Do you plan to implement sending commands on events?

Anton Tananaev2 years ago

It's already implemented on master.

Viktor2 years ago

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

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

Anton Tananaev2 years 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.

traccargps12 years 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 Tananaev2 years ago

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

traccargps12 years 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 Tananaev2 years ago

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

traccargps12 years ago

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

Paul10 months ago

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

Juankaher3 months ago

Hi @traccargps1,
could you please advise how to do it? or ponit me to documentation.

Thanks

Juankaher3 months ago

dismiss previous post , I manage to do it.
:)