Waha notification

PauloLima 2 days ago

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

PauloLima 2 days ago

Untitled.jpg

Untitled_1.jpg

Anton Tananaev 2 days ago

Please don't use all caps!

PauloLima 2 days ago

I didn't use it

Anton Tananaev 2 days ago

You did for the topic title.

PauloLima 2 days ago

Can you help me configure my XML correctly?

PauloLima 2 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>