WebHook / Push

tommyturkijevic7 years ago

Hi again,

As I can see it is possible to get a notification though web, email or SMS. But is there a way to get
a push to a URL based on a event for instance, SOS or Geofence Breach.

As an example, on a geofence breach, I want server to post configurable json data to a url.

This would be a super feature that would make this system even more great.
I come from a C# background, and I'm not sure how much I can help adding code to your system, anyway I can help let me know.

Regards
Tommy Turkijevic

Anton Tananaev7 years ago

Yes, it is possible. What you are looking for is called event forwarding:

https://www.traccar.org/configuration-file/

tommyturkijevic7 years ago

Absolutley fabulous, thank you.

Regards
Tommy

tommyturkijevic7 years ago

Do you have any examples of how a forward.url can be constucted, eg. the {variables} that can be used. ?
Tommy

Anton Tananaev7 years ago

I think you are looking at the wrong parameters. Event forwarding doesn't accept any variables.

andrl7 years ago

Hi
I need build/test integration of traccar with 3-rd party app.
and seems event forwarding could be solution.
Question is:
Is there any option to generate test events in development environment? I mean can I work on integration without any hardware devices?

Thanks in advance
Andrey

Anton Tananaev7 years ago

You can use "test-generator.py" script from tools for testing. It would send some alarms as well.