Hello hornyakn, let's go, I'll try to help you with what I can. First, let's go through the notifications:
You must first inform Traccar which types of notifications you intend to use; (email, web, traccar, telegam), this can be done via UI or directly in the file (traccar.xml) like this: <entry key='notificator.types'>web,mail,telegram,traccar,command</entry>
After that, these options should already appear in: settings + notifications + add (+ sign) + channels.
The second part is to configure the information of your email provider, I also recommend the configuration directly in the traccar.xml file:
<entry key='mail.smtp.port'>587</entry>
<entry key='mail.smtp.starttls.enable'>true</entry>
<entry key='mail.smtp.host'>smtp.gmail.com</entry>
<entry key='mail.smtp.from'>you_email@gmail.com</entry>
<entry key='mail.smtp.auth'>true</entry>
<entry key='mail.smtp.username'>you_user_name@gmail.com</entry>
<entry key='mail.smtp.password'>you_password</entry>
the third part is to make sure that the ports generally used by email protocols (smtp, imap ... )(587, 465 ...) are open on your VPS.
Remembering that whenever you change the traccar.xml file, you must restart the server.
To finish configure a notification in (settings + notifications + add (+ sign), choose the type of notification and in channels you will choose email, and then click on test channel. This will send a test email to your configured email box previously.
Regarding Telegram notification, you need to configure the feature in the added traccar.xml file:
<entry key='notificator.telegram.key'>8548956485:AAxJxASxYX6xxTqxRPxxyxIx6xr9x2DxKx4</entry>
<entry key ='notificator.telegram.chatId'>-1001543800267</entry>
You should research how to get Telegram chatId and token and put them in the above configuration.
After again restart the server and configure a new notification in the UI, but this time choose Telegram instead of Email, and then trigger a test message.
Regarding the geofence notification, once the geofence is created, you need to attach this geofence to the device.
This is done in:
(Settings + devices + first icon before pencil)
once the resources are configured, there is no need to save, just go back or exit.
That's enough for the notifications to work.
Regarding calculated attributes, once created and tested, you need to attach it to the device.
This is done in:
(Settings + devices + first icon before pencil)
Once the features are configured, there is no need to save, just go back or exit.
That's enough for the notifications to work.
The other questions I don't use, so I can't help you.
Remembering that there is official documentation, even if it does not cover all features. Traccar evolves quickly, and by the looks of it, everything is done by Anton. So it must not be easy to "code", document, etc.
Thanks for reply.
The SMTP host are set, the default "web,mail" notification is OK for me. I don't care telegram. I'm also sure that the SMTP settings are good. Yes i know that need to restart any service after config change... It is restarted countless times since then.
The cars(devices) in a group, the maintenances, notifications and computed attributes are linked is on this group.
I did not find in any documentation, how can I setup a TLS interface in traccar for secure communication between server and devices?
Hello, have you tried configuring your email server with a Thunderbird or Outlook client? just to verify if it will connect successfully?, once configured you can verify which are the necessary configurations to be used, and replicate in Traccar.
Turbovix:
Some datas are still not receiving from the client device (FMB140), but i think this is not a traccar problem now.
Hi guys again!
I'm completely lost in traccar. Modern UI is the worst what I ever used and I hate it (yes, I know that this is made by Google...). Legacy UI is better, but i try to configure things with no luck. I did not think that I'm a stupid guy, I'm sysadmin and installing, configuring, maintaining and using a lot of different services and softwares... It is not working for me what I expect, did not understand how should it works. I also did not find any documentation or tutorial video or anything (except the base install) about configuring special things, like CAN data, mapped values, notifications and so on...
Now these are in my head, but there is many small things... :(
Can you recommend me somebody some text or video tutorial?