diff options
author | Abyss777 <abyss@fox5.ru> | 2016-06-26 00:51:33 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-06-26 00:51:33 +0500 |
commit | a25e7bd56c128fb2a1c673abf735b3e64706f9a8 (patch) | |
tree | a99d2cde526f97082d7bc95531772b6835064fcd /setup | |
parent | 67f46c80d3b5e34440a2644f52b81dddfbaba5fa (diff) | |
download | traccar-server-a25e7bd56c128fb2a1c673abf735b3e64706f9a8.tar.gz traccar-server-a25e7bd56c128fb2a1c673abf735b3e64706f9a8.tar.bz2 traccar-server-a25e7bd56c128fb2a1c673abf735b3e64706f9a8.zip |
Added notifications via email
Added notifications settings
Diffstat (limited to 'setup')
-rw-r--r-- | setup/unix/traccar.xml | 35 | ||||
-rw-r--r-- | setup/windows/traccar.xml | 35 |
2 files changed, 70 insertions, 0 deletions
diff --git a/setup/unix/traccar.xml b/setup/unix/traccar.xml index b75376434..890229d00 100644 --- a/setup/unix/traccar.xml +++ b/setup/unix/traccar.xml @@ -28,6 +28,20 @@ <entry key='event.geofenceHandler'>true</entry> + <!--<entry key='mail.smtp.host'>smtp.example.com</entry> + for STARTTLS + <entry key='mail.smtp.port'>587</entry> + <entry key='mail.smtp.starttls.enable'>true</entry> + for SSL + <entry key='mail.smtp.port'>465</entry> + <entry key='mail.smtp.ssl.enable'>true</entry> + + <entry key='mail.smtp.from'>traccar@example.com</entry> + + <entry key='mail.smtp.auth'>true</entry> + <entry key='mail.smtp.username'>traccar@example.com</entry> + <entry key='mail.smtp.password'>password</entry>--> + <!-- DATABASE CONFIG --> <entry key='database.driver'>org.h2.Driver</entry> @@ -252,6 +266,27 @@ DELETE FROM device_geofence WHERE deviceId = :deviceId AND geofenceId = :geofenceId; </entry> + <entry key='database.selectNotifications'> + SELECT * FROM notifications; + </entry> + + <entry key='database.insertNotification'> + INSERT INTO notifications (userId, type, attributes) + VALUES (:userId, :type, :attributes); + </entry> + + <entry key='database.updateNotification'> + UPDATE notifications SET + userId = :userId, + type = :type, + attributes = :attributes + WHERE id = :id; + </entry> + + <entry key='database.deleteNotification'> + DELETE FROM notifications WHERE id = :id; + </entry> + <!-- PROTOCOL CONFIG --> <entry key='gps103.port'>5001</entry> diff --git a/setup/windows/traccar.xml b/setup/windows/traccar.xml index 995b52c0d..0f50dc0b2 100644 --- a/setup/windows/traccar.xml +++ b/setup/windows/traccar.xml @@ -28,6 +28,20 @@ <entry key='event.geofenceHandler'>true</entry>
+ <!--<entry key='mail.smtp.host'>smtp.example.com</entry>
+ for STARTTLS
+ <entry key='mail.smtp.port'>587</entry>
+ <entry key='mail.smtp.starttls.enable'>true</entry>
+ for SSL
+ <entry key='mail.smtp.port'>465</entry>
+ <entry key='mail.smtp.ssl.enable'>true</entry>
+
+ <entry key='mail.smtp.from'>traccar@example.com</entry>
+
+ <entry key='mail.smtp.auth'>true</entry>
+ <entry key='mail.smtp.username'>traccar@example.com</entry>
+ <entry key='mail.smtp.password'>password</entry>-->
+
<!-- DATABASE CONFIG -->
<entry key='database.driver'>org.h2.Driver</entry>
@@ -252,6 +266,27 @@ DELETE FROM device_geofence WHERE deviceId = :deviceId AND geofenceId = :geofenceId;
</entry>
+ <entry key='database.selectNotifications'>
+ SELECT * FROM notifications;
+ </entry>
+
+ <entry key='database.insertNotification'>
+ INSERT INTO notifications (userId, type, attributes)
+ VALUES (:userId, :type, :attributes);
+ </entry>
+
+ <entry key='database.updateNotification'>
+ UPDATE notifications SET
+ userId = :userId,
+ type = :type,
+ attributes = :attributes
+ WHERE id = :id;
+ </entry>
+
+ <entry key='database.deleteNotification'>
+ DELETE FROM notifications WHERE id = :id;
+ </entry>
+
<!-- PROTOCOL CONFIG -->
<entry key='gps103.port'>5001</entry>
|