SMS notification

Jérômea year ago

Hi, I have a "Teltonika TRB140" in-house SMS gateway, I would like to know how to configure Traccar to use it?

Possible to have the procedure to follow?

Thanks in advance.

Cordially,

Anton Tananaeva year ago

What's the API for the gateway?

Jérômea year ago

Currently for my home automation I use it like this:

http://adressIP/cgi-bin/sms_send?username=login&password=password!&number=00336XXXXXXXX&text=

Can I adapt this configuration to Traccar?

Anton Tananaeva year ago

No, we only support payload-based requests currently.

GPS14 months ago

Hello ,
I checked this link : https://developers.teltonika-networks.com/ .

On this page it show this :

Get an authentication token by making a request to the POST /api/login endpoint with your device’s credentials.

curl -X POST "http://<DEVICE_IP>/api/login" \
  -H "Content-Type: application/json" \
  -d '{"username": "<USERNAME>", "password": "<PASSWORD>"}'

Response with a JSON object containing the authentication token:

{
    "success": true,
    "data": {
        "username": "admin",
        "token": "3293....9d66",
        "expires": 299
    }
}

Use the token from the login response to make requests to API endpoints. For example:

curl -X GET "http://<DEVICE_IP>/api/system/device/status" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <SESSION_TOKEN>"

You should now receive a response with detailed information about your device.

Kind Regards,

Jérôme4 months ago

Hello and thank you for your feedback.

Alas, it is limited so that I can apply your solution :(

GPS14 months ago

I posted this link https://developers.teltonika-networks.com/ to can see that Teltonika TRB140 sms gateway can have that payload in json format .

I cant give to you the exact solution how to do it .

Anton master the skils to implement Teltonika sms gateways .