From e142f6e0f9fa2f86123e38011ab6645bea77da55 Mon Sep 17 00:00:00 2001 From: Vitaly Litvak Date: Sun, 26 Apr 2015 14:01:30 +0300 Subject: [PATCH] For #87 #139 #148 - added news, updated article --- ...n-templates-and-archive-loading-speedup.md | 9 ++++++ features/notifications.md | 29 +++++++++++++++++-- 2 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 _posts/2015-04-26-notification-templates-and-archive-loading-speedup.md diff --git a/_posts/2015-04-26-notification-templates-and-archive-loading-speedup.md b/_posts/2015-04-26-notification-templates-and-archive-loading-speedup.md new file mode 100644 index 00000000..2ac3b1a7 --- /dev/null +++ b/_posts/2015-04-26-notification-templates-and-archive-loading-speedup.md @@ -0,0 +1,9 @@ +--- +layout: default +--- + +Today's major update contains following: + +* [notification](/features/notifications.html) messages templates (for [#148](https://github.com/vitalidze/traccar-web/issues/148) and [#139](https://github.com/vitalidze/traccar-web/issues/139)) + +* archive grid view replacement with `LiveGridView` that can handle large number of rows (for [#87](https://github.com/vitalidze/traccar-web/issues/87)) \ No newline at end of file diff --git a/features/notifications.md b/features/notifications.md index 7d2cd5bf..c653107d 100644 --- a/features/notifications.md +++ b/features/notifications.md @@ -14,14 +14,37 @@ First of all, all users that want to receive notifications must have email field ![Account settings dialog](http://i58.tinypic.com/339ilv5.png) -Then user with either 'administrator' or 'manager' role should set up either SMTP server settings or [Pushbullet](https://www.pushbullet.com/) Access Token in Settings >> Notifications menu. - +Then user with either 'administrator' or 'manager' role in Settings >> Notifications menu should set up one of the following: + ![Notification settings menu](http://i62.tinypic.com/w6tklu.png) -![Notification settings dialog](http://i61.tinypic.com/vq7cat.png) +* SMTP server settings Access Token + +![Notification settings dialog - Email](http://i58.tinypic.com/16kas5d.png) + +* [Pushbullet](https://www.pushbullet.com/) + +![Notification settings dialog - Pushbullet](http://i61.tinypic.com/2di15pd.png) Use 'Test' button to check settings validity. It will just test the connection. No test email or push is sent. +Templates +--------- + +In Settings >> Notifications menu it is also possible to customize notification message with template. Message template is defined per event type. + +![Notification settings dialog - Message templates](http://i57.tinypic.com/o88fhe.png) + +There are placeholders, which are replaced during message generation with actual values. Full list of placeholders. Placeholders may be used both in subject and body of message. Full list of available placeholders is shown at bottom of this dialog window. There is an option to apply custom formatting to the date and time fields using rules from [SimpleDateFormat](https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html) and following notation: + + ${dateField;date(FORMAT)} + +For example: + + ${eventTime;date(yyyy.MM.dd HH:mm:ss)} + +Each template can be tested with sample values using 'Test' button. + Usage -----