Line Notification

jemkewl3 months ago

Got it. I have not set any phone number within traccar. Assuming that is another xml attribute in the config? I'll go read some more.

Thank you again for all the support and ideas!

Anton Tananaev3 months ago

It's not in the config. It's just in your user account settings in the app.

jemkewl3 months ago

In the traccar app where is says Phone as in the below screenshot?

Screenshot_20240902_154721_Brave.jpg

Anton Tananaev3 months ago

Yes. Have you tried?

jemkewl3 months ago

That did it! Once the phone number was added, the POSTs began!

Now to format the message!

Thank you again for support, direction, and ultimate fix!

jemkewl3 months ago

For anyone that finds this in the future - the following worked:

    <entry key='notificator.types'>web,mail,sms</entry>
    <entry key='sms.http.url'>https://notify-api.line.me/api/notify</entry>
    <entry key='sms.http.authorization'>Bearer redacted</entry>
    <entry key='sms.http.template'>message={message}</entry>

In traccar UI, add a phone number to the Admin account in Preferences->Phone

Configure the Geofences, Notifications, and Connections per traccar documentation and Line messages will be sent via the API that Line provides.
To configure the Line api, need to login with your Line account and generate a bearer token for the associated channel you wish to use. (replace "redacted" in above xml config with the value received from Line). The Line Notify bot will need to be invited to the chat channel to send the messages. The Line token can be made / managed here: https://notify-bot.line.me/my/

Rodney Yeo2 months ago

Many thanks @jemkewl for your detailed setup guide of using SMS Notification function to work with LINE app platform.

The best part it is easy to setup and I was able to invite private members to my private TracCar Notification group easily.

    <entry key='notificator.types'>web,mail,command,traccar,telegram,sms</entry>
    <entry key='sms.http.url'>https://notify-api.line.me/api/notify</entry>
    <entry key='sms.http.authorization'>Bearer XXX-LINE-Token-XXX</entry>
    <entry key='sms.http.template'>message={message}</entry>

The only tricky part is at LINE web app we need to create a Manage Registered Services (Service Provider) and connecting your preferred service before we can invite LINE Notify bot into our custom TracCar Notification group to receive alert!

Thanks a million for the easy setup LINE app notification tips!