SMS or email notifications

PAVALCO_TEST7 years ago

Hello,

I want to use traccar as a service for 5-10 vehicles in pay per use. I have started with a demo session.
Now I have been trying to configure notifications (exit geofences) but I only got web notifications
My device is GT06N and now is working correctly in a demo session of http://demo5.traccar.org/
I need remote notifications to mail and SMS but I donĀ“t know how to configure this option.
Can you help me? I'm very interested for comercial use.

Regards,

Anton Tananaev7 years ago

For email notifications you need to configure SMTP server. You can do it in user attributes.

For SMS notifications you need SMPP server. You can only configure it through config file, so you need your own server.

More info:

https://www.traccar.org/documentation/notifications/

visiondrive7 years ago

Pavalco for SMS you need to find a SMPP server provider and setup an account with them to pay for the SMS messages - they will provide you with a server/host address and username/password.

You configure these in your own TRACCAR server config file - here is what I have on my system.

xxxxx and yyyyy provided by SMPP server and zzzzz is a valid mobile/cell that the messages will be reported as having been sent from.

<entry key='sms.smpp.enable'>true</entry>
<entry key='sms.smpp.host'>smpp.clicksend.com</entry>
<entry key='sms.smpp.port'>2775</entry>
<entry key='sms.smpp.username'>xxxxxx</entry>
<entry key='sms.smpp.password'>yyyyyy</entry>
<entry key='sms.smpp.notificationsCharset'>GSM</entry>
<entry key='sms.smpp.notificationsDataCoding'>0</entry>
<entry key='sms.smpp.sourceAddress'>+61zzzzzz</entry>

My current provider is https://www.clicksend.com/au/ and they charge 7 cents AUS per SMS.

I will be moving to this provider https://www.smsbroadcast.com.au when my credit has expired as they offer bulk purchases at 2 cents AUS per SMS.

For SMTP I am using GMAIL - again you need to setup the account and make your server a trusted connection point with Google to disable two factor authentication for the SMTP login.

Here is my config for SMTP - see the config for information on these settings https://www.traccar.org/configuration-file/

<entry key='mail.smtp.host'>smtp.gmail.com</entry>
<entry key='mail.smtp.port'>465</entry>
<entry key='mail.smtp.ssl.enable'>true</entry>
<entry key='mail.smtp.from'>email_from_name@gmail.com</entry>
<entry key='mail.smtp.auth'>true</entry>
<entry key='mail.smtp.username'>email_name@gmail.com</entry>
<entry key='mail.smtp.password'>email_pwd</entry>

Hope this helps.