I developed my own sms gateway using nodejs. Tried it using postman and its already working, Using postman , on headers Authorization:my_token_abc, and on Body im passing a raw json data
{
"to":"+639109120912",
"message":"Hello, World!"
}
and the sms gateway is working but when im testing it now on traccar it is not working. these are my config on default.xml:
<entry key='notificator.types'>web,mail.sms</entry>
<entry key='sms.http.url'>http://localhost:3000/send</entry>
<entry key='sms.http.authorization'>my_token_abc</entry>
<entry key='sms.http.template'>
{
"to": "{phone}",
"message": "{message}"
}
</entry>
Is there anything wrong?
This is the screenshot of my default.xml:
Screenhot
When im testing the SMS notification using "TEST CHANNELS" button i can now receive the SMS but when im receiving the real events i cant receive the SMS event only the Mail/Web notification
- Why are you changing
default.xml
?
- And why is this not comma-separated values?
<entry key='notificator.types'>web,mail.sms</entry>
Thank you it's now working it should be on the traccar.xml. If i want to add a feature to my server when the device overspeed, it will send an sms to the (Driver linked to the device) Driver's attribute "driver_phone", which file should i edit?
I developed my own sms gateway using nodejs. Tried it using postman and its already working, Using postman , on headers Authorization:my_token_abc, and on Body im passing a raw json data
{ "to":"+639109120912", "message":"Hello, World!" }
and the sms gateway is working but when im testing it now on traccar it is not working. these are my config on default.xml:
<entry key='notificator.types'>web,mail.sms</entry> <entry key='sms.http.url'>http://localhost:3000/send</entry> <entry key='sms.http.authorization'>my_token_abc</entry> <entry key='sms.http.template'> { "to": "{phone}", "message": "{message}" } </entry>
Is there anything wrong?