Notification setup

MikaK2 months ago

I have own hosted Traccar in my VPS server. Is it possible to get notifications with "Traccar" method?

Anton Tananaev2 months ago
MikaK2 months ago

Okey, but where I find TRACCAR KEY ?

Anton Tananaev2 months ago

Make sure you read the documentation carefully. It answers this question.

Mika Koivunen2 months ago

I have read it many times and also make new account. And only I get is this error message:

Failed to get notificator web - RuntimeException (NotificatorManager:75 < NotificationResource:108 < ... < OverrideFilter:50 < ...)
Anton Tananaev2 months ago

Why are you posting as a different forum account?

Vani2 months ago

https://www.traccar.org/my-account/

There you can find the api key

Mika Koivunen2 months ago

Anton:
I made a new account with same email as my own Traccar setup is.

Vani:
Yes, I find it and already tried it. But.I don't understand how this official Traccar account is comnected to my own VPS installation?

Vani2 months ago

You need to place that api key in the traccar configuration file. In the traccar.xml

Read the documentation

Mika Koivunen2 months ago

I have set the api key. Restarted service and tried notification and I cant get any notification to Traccar app.

Anton Tananaev2 months ago

Check if you have a notification token in the user attributes.

Mika Koivunen2 months ago

Okay, where I can found right notification token?

It would be nice if someone can help with this problem and can tell all needed things to get push notification to work.

The Traccar is best GPS tracking software that I have been tested. The documentation is not the best. I also understand it, because paid support is Anton's work.

Anton Tananaev2 months ago

I don't like the accusation that we deliberately make the documentation bad to make money on support. That is not the case. Having good documentation is good for our business because we would get more users overall, and some of them will pay just to save their time.

Mika Koivunen2 months ago

Anton: Okay I understand, but push notification still not work. Web and email notifiacation is working normally.

I have added these lines to configuration file:

<entry key='notificator.types'>web,traccar,mail</entry>
<entry key='notificator.traccar.key'>eyJkYXRhIjo0ND...............................................FmemF1QQ</entry>

This TRACCAR_KEY is same as API key in https://www.traccar.org/my-account/
Is TRACCAR_KEY same thing that API in my-account site?

User attributes section is fields: Pushover User Key, Pushover Device Names and Notification Tokens. There is now some "keys", but whre I find right ones? Device names is my two devices name comma separate.

I have read the documentation. I cant find info to these fields.

Kind Regards,
Mika

Näyttökuva 2025-01-19 kello 16.48.19.jpg

Anton Tananaev2 months ago

Notification Tokens is the right attribute. If you have it, it should be working.