Custom Notificator

Traccar User5 years ago

Hi all, is it possible to make custom notificator without rebuild traccar from source?

I have been made custom notificator based on https://github.com/Abyss777/traccar/commit/49dcc0e71978a72aba271ee353f66754408f42fa and build it to jar then copy it to library folder. But i always got message like this.:

2020-06-15 08:02:16  WARN: Unable to load notificator class for line com.xxxx.notificatorline.NotificatorLine com.xxxx.notificatorline.NotificatorLine

Here is my configuration:

    <entry key='notificator.types'>web,line</entry>
    <entry key='notificator.line.class'>com.xxxx.notificatorline.NotificatorLine </entry>
    <entry key='notificator.line.url'>http://localhost:8000/</entry>

Thanks

Anton Tananaev5 years ago

Have you added it to the classpath?

Traccar User5 years ago

Yes, i have added it to classpath too but still not working.

So actually, it is possible to add custom notifcator just by add the jar file, isn't it?

Traccar User5 years ago

This is command i executed:

"C:\Program Files\Traccar\jre\bin\java.exe" -Duser.dir="C:\Program Files\Traccar" -classpath "C:\Program Files\Traccar\lib\NotificatorLine-1.0-SNAPSHOT.jar" -jar "C:\Program Files\Traccar\tracker-server.jar" --service ".\conf\traccar.xml"
Anton Tananaev5 years ago

I would recommend recompiling Traccar with your library as a dependency.

Traccar User5 years ago

Noted. Thanks for the recommendation