Send command on geofence event

Kjetil Pedersen 4 years ago

Hello!

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

Anton Tananaev 4 years ago

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

Viktor 3 years ago

Do you plan to implement sending commands on events?

Anton Tananaev 3 years ago

It's already implemented on master.

Viktor 3 years ago

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

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

Anton Tananaev 3 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.

traccargps1 3 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 Tananaev 3 years ago

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

traccargps1 3 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 Tananaev 3 years ago

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

traccargps1 3 years ago

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

Paul 2 years ago

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

Juankaher a year ago

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

Thanks

Juankaher a year ago

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

Dsuarez a year ago

hi @Juankaher @traccargps1 could You advise how did You configure it?