Waha notification

PauloLima 25 days ago

Is it possible to configure the Traccar XML to send notifications via Waha?

PauloLima 25 days ago

Untitled.jpg

Untitled_1.jpg

Anton Tananaev 25 days ago

Please don't use all caps!

PauloLima 25 days ago

I didn't use it

Anton Tananaev 25 days ago

You did for the topic title.

PauloLima 25 days ago

Can you help me configure my XML correctly?

PauloLima 25 days ago
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>

    <entry key="config.default">./conf/default.xml</entry>

    <entry key='database.driver'>com.mysql.jdbc.Driver</entry>
    <entry key='database.url'>jdbc:mysql://localhost/traccar?zeroDateTimeBehavior=round&amp;serverTimezone=UTC&amp;allowPublicKeyRetrieval=true</entry>
    <entry key='database.user'>root</entry>
    <entry key='database.password'>root</entry>

    <entry key='notificator.types'>web,mail,sms</entry>
    <entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>

    <entry key='sms.http.url'>http://XXX.XX.XXX.XX:3000/api/sendText?token=5222fc86259745a085467c28e21bd080</entry>

    <entry key='sms.http.headers'>Content-Type: application/json&#10;X-Api-Key: 5222fc86259745a085467c28e21bd080</entry>

    <entry key='sms.http.template'>
    {
        "session": "default",
        "chatId": "{phone}@c.us",
        "text": "{message}"
    }
    </entry>

</properties>
RastreameMX 23 days ago

It seems that you are using inexistent keys (http.headers doesn't exists). I think you could test with this configuration :

<entry key='sms.http.authorizationHeader'>X-Api-Key</entry>

<entry key='sms.http.authorization'>{here goes your token}</entry>

I recommend you to change your API token, and your mysql user/password as them have been exposed here (even when here is not disclosed any ip address).

PauloLima 20 days ago

WhatsApp Image 2026-03-08 at 14.24.19.jpeg
I did it, I'm receiving alerts via WhatsApp! Thank you!

PauloLima 20 days ago

All my connections are via VPN.