aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/notification
AgeCommit message (Collapse)Author
2017-11-06Using templates for event forwarded messagesShinryuken
2017-11-04Adding support for additional parameters on post body request (pushover support)Shinryuken
Hi, i implemented a new modality when sending event messages inside EventForwarder, now you can send requests as a "form-urlencoded", this means that the actual payload will be sent as a form parameter (the parameter name is configurable), this strategy will let you to add another parameters inside the form body message too. You can add new custom form params almost on the same way as the custom headers are inserted (event.forward.header), the only difference is that you will use the equals "=" char instead of ":" as key/value separator. You can enable this mode using the option: "event.forward.payloadAsParamMode", when using this mode you can use the other 2 configuration elements, "event.forward.paramMode.payloadParamName" if you want to change the form name param of the payload (default is "payload") and "event.forward.paramMode.additionalParams" to specify additional key/value form params. I added an option to prettyPrint the payload messages too, you can enable it using "event.forward.prettyPrintedPayload", i decided to add this option only for the EventForwarder behaviour. This is an example (using all the new params) that lets you integrate traccar server with the pushover platform. <entry key='status.timeout'>60</entry> <entry key='event.statusHandler'>true</entry> <entry key="event.forward.enable">true</entry> <entry key='event.forward.url'>https://api.pushover.net/1/messages.json</entry> <entry key='event.forward.prettyPrintedPayload'>true</entry> <entry key='event.forward.payloadAsParamMode'>true</entry> <entry key='event.forward.paramMode.payloadParamName'>message</entry> <entry key='event.forward.paramMode.additionalParams'> token=YOUR_TOKEN_ID user=YOUR_USER_ID </entry> I tested the new options and they work pretty well. Tried to make the change as clean as possible and avoiding code duplications. This mode does not change or affects the actual behabiour of the module. Let me know what do you think.
2017-09-28Make user SMTP config more priorityAbyss777
2017-09-07Optimize values parsingAbyss777
2017-09-07Handle correct and incorrect attribute typesAbyss777
2017-09-06Move units to attributes and add volume unitsAbyss777
2017-08-07Remove "auth" parameter as not necessaryAbyss777
2017-07-26- Implement base manager classes as genericsAbyss777
- Remame getDeviceById and getDeviceByUniqueId functions
2017-07-20Rename Identifiable and Extensible to BaseModel and ExtendedModelAbyss777
2017-07-19Refactored four managersAbyss777
2017-07-13- Save both driver name and driver unique id in trip reportAbyss777
- Map user and driver objects to notification templates - Add driverUnauthorized templates
2017-04-29Save more statistics infoAnton Tananaev
2017-04-20Add a Date: header in notification emailsRenaud Allard
2017-04-14Add bytecode version checkAnton Tananaev
2017-04-14Update Java librariesAnton Tananaev
2017-04-02make method accessible to ther classesIvan Martinez
2017-03-24Format speed in notification templatesAbyss777
2017-03-13- Add timezone field to User and Server modelAbyss777
- Pass Velocity DateTool to templates - Adjusted templates to use timezone
2017-03-02Implement sms commandsAbyss777
2017-02-25Pass path to getTemplateAbyss777
2017-02-23- Combine template retrieving in one functionAbyss777
- Do not request delivery receipt
2017-02-21Implement SMS notifications with help smpp protocolAbyss777
2017-02-06Event forward header small improvementAbyss777
2017-01-11Fix mail template encodingAbyss777
2016-12-19Remove own JSON converterAnton Tananaev
2016-12-09Added links to server in mail templatesAbyss777
2016-12-07- Extract MailMessage classAbyss777
- Move getting "unknown.vm" to catch
2016-12-07Implement mail templatesAbyss777
2016-12-06Add support for "mail.smtp.ssl.protocols" parameterAbyss777
2016-11-30Implement API to test mailAbyss777
2016-11-25Rename maintenance eventsAnton Tananaev
2016-11-23Some more placesAbyss777
2016-11-23Merge remote-tracking branch 'upstream/master' into maintenanceeventsAbyss777
2016-11-23Adjust constants namesAbyss777
2016-11-23Merge pull request #2591 from Turbovix/Turbovix-patch-3Anton Tananaev
Update NotificationFormatter.java (fix #2590)
2016-11-22Update NotificationFormatter.javaTurbovix
The URL that refers to the OpenStreetMaps website with the notifications received from the TRACCAR server now uses HTTPS, that is, a secure connection.
2016-11-22Add mail templates for new event typesAbyss777
2016-11-02Update copyright notice emailsAnton Tananaev
2016-10-12Improvements to mail moduleAnton Tananaev
2016-10-12Fix an SMTP configuration issueAnton Tananaev
2016-10-03Changed Content-Type for easy access to data from PHP and othersAbyss777
2016-09-16Use same code formatting for switchesAnton Tananaev
2016-08-30Add missing copyright headerAnton Tananaev
2016-08-24- Added speed converting in NotificationFormatterAbyss777
- Used constants in UnitsConverter
2016-08-23Implement cache for users objectsAbyss777
2016-08-11Added message templates for alarm and ignition eventsAbyss777
2016-08-07Fixed typo in notification formatterAnton Tananaev
2016-08-04Fix NullPointer exception without 'mail.smtp.username' in config.Abyss777
2016-08-03Fix mail session creatingAbyss777
2016-08-03- Optimized SSL connectionAbyss777
- Added "mail.smtp.ssl.trust" parameter