2013-01-13 13:19:27 +08:00
|
|
|
<?xml version='1.0' encoding='UTF-8'?>
|
2012-04-25 02:59:31 +08:00
|
|
|
|
2013-01-13 13:19:27 +08:00
|
|
|
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
|
2012-04-25 02:59:31 +08:00
|
|
|
|
|
|
|
<properties>
|
|
|
|
|
2015-06-05 13:02:22 +08:00
|
|
|
<!-- SERVER CONFIG -->
|
|
|
|
|
|
|
|
<entry key='web.enable'>true</entry>
|
|
|
|
<!--<entry key='web.address'></entry>-->
|
|
|
|
<entry key='web.port'>8082</entry>
|
2015-06-27 07:04:12 +08:00
|
|
|
<!--<entry key='web.application'>../traccar-web/traccar-web.war</entry>
|
|
|
|
<entry key='web.old'>true</entry>-->
|
2015-06-05 13:02:22 +08:00
|
|
|
<entry key='web.path'>web</entry>
|
2015-06-29 12:43:50 +08:00
|
|
|
<entry key='web.debug'>true</entry>
|
2015-11-27 10:12:28 +08:00
|
|
|
<entry key='web.console'>true</entry>
|
2016-03-09 16:48:59 +08:00
|
|
|
<entry key='web.timeout'>30000</entry>
|
2015-06-05 13:02:22 +08:00
|
|
|
|
2015-10-30 07:00:36 +08:00
|
|
|
<entry key='geocoder.enable'>true</entry>
|
2015-06-05 13:02:22 +08:00
|
|
|
<entry key='geocoder.type'>nominatim</entry>
|
|
|
|
<entry key='geocoder.url'>http://nominatim.openstreetmap.org/reverse</entry>
|
|
|
|
|
2015-11-18 10:32:05 +08:00
|
|
|
<entry key='location.enable'>false</entry>
|
|
|
|
<entry key='location.key'>fake</entry>
|
2015-11-18 17:04:41 +08:00
|
|
|
<entry key='location.mcc'>260</entry>
|
|
|
|
<entry key='location.mnc'>2</entry>
|
2015-11-18 10:32:05 +08:00
|
|
|
|
2015-08-18 09:22:16 +08:00
|
|
|
<entry key='distance.enable'>true</entry>
|
|
|
|
|
2015-06-05 13:02:22 +08:00
|
|
|
<!--<entry key='filter.enable'>true</entry>
|
|
|
|
<entry key='filter.limit'>3600</entry>
|
|
|
|
<entry key='filter.invalid'>true</entry>
|
|
|
|
<entry key='filter.zero'>true</entry>
|
|
|
|
<entry key='filter.duplicate'>true</entry>
|
|
|
|
<entry key='filter.distance'>50</entry>-->
|
2015-08-18 09:22:16 +08:00
|
|
|
|
2015-07-12 13:08:14 +08:00
|
|
|
<!--<entry key='forward.enable'>true</entry>
|
2015-07-14 15:17:02 +08:00
|
|
|
<entry key='forward.url'>http://example.com:8080/gprmc/Data?id={uniqueId}&code=0x0000&gprmc={gprmc}</entry>-->
|
2015-06-05 13:02:22 +08:00
|
|
|
|
|
|
|
<entry key='logger.enable'>true</entry>
|
|
|
|
<entry key='logger.level'>all</entry>
|
|
|
|
<entry key='logger.file'>target/tracker-server.log</entry>
|
|
|
|
|
2016-07-28 16:44:05 +08:00
|
|
|
<entry key='deviceManager.lookupGroupsAttribute'>true</entry>
|
|
|
|
|
2016-10-15 03:31:09 +08:00
|
|
|
<entry key='decoder.ignoreSessionCache'>false</entry>
|
|
|
|
|
2016-06-23 19:17:25 +08:00
|
|
|
<entry key='event.enable'>true</entry>
|
2016-06-13 20:03:14 +08:00
|
|
|
<entry key='event.overspeedHandler'>true</entry>
|
2016-07-28 20:57:24 +08:00
|
|
|
<entry key='event.overspeed.notRepeat'>true</entry>
|
2016-06-13 20:03:14 +08:00
|
|
|
<entry key='event.motionHandler'>true</entry>
|
|
|
|
<entry key='event.geofenceHandler'>true</entry>
|
2016-07-17 14:54:15 +08:00
|
|
|
<entry key='event.alertHandler'>true</entry>
|
2016-08-11 14:34:51 +08:00
|
|
|
<entry key='event.ignitionHandler'>true</entry>
|
2016-10-03 15:16:15 +08:00
|
|
|
<entry key='event.statusHandler'>true</entry>
|
2016-06-13 20:03:14 +08:00
|
|
|
|
2016-07-13 20:37:31 +08:00
|
|
|
<!--<entry key='event.forward.enable'>true</entry>
|
|
|
|
<entry key='event.forward.url'>http://localhost/</entry>
|
|
|
|
<entry key='event.forward.header'>
|
|
|
|
Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l
|
|
|
|
</entry>-->
|
|
|
|
|
2016-06-26 03:51:33 +08:00
|
|
|
<!--<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>
|
2016-08-03 13:33:01 +08:00
|
|
|
for self-signed server sertificates
|
|
|
|
<entry key='mail.smtp.ssl.trust'>smtp.example.com</entry>
|
2016-06-26 03:51:33 +08:00
|
|
|
|
|
|
|
<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>-->
|
|
|
|
|
2015-06-05 12:49:40 +08:00
|
|
|
<!-- DATABASE CONFIG -->
|
|
|
|
|
2015-01-29 11:01:53 +08:00
|
|
|
<!--<entry key='database.driverFile'>hsqldb.jar</entry>-->
|
2016-07-13 20:29:39 +08:00
|
|
|
<entry key='database.driver'>org.h2.Driver</entry>
|
2015-01-31 07:50:37 +08:00
|
|
|
<entry key='database.url'>jdbc:h2:./target/database</entry>
|
2013-01-13 13:19:27 +08:00
|
|
|
<entry key='database.user'>sa</entry>
|
2016-07-13 20:29:39 +08:00
|
|
|
<entry key='database.password'></entry>
|
2016-03-19 05:41:23 +08:00
|
|
|
|
2016-07-11 07:25:11 +08:00
|
|
|
<entry key='database.ignoreUnknown'>true</entry>
|
2016-09-21 19:59:28 +08:00
|
|
|
|
|
|
|
<!-- Automatically registers unknown devices. -->
|
|
|
|
<entry key='database.registerUnknown'>false</entry>
|
2016-07-11 07:25:11 +08:00
|
|
|
|
2015-07-15 18:55:09 +08:00
|
|
|
<entry key='database.xml'>false</entry>
|
2016-07-28 10:35:02 +08:00
|
|
|
<entry key='database.saveOriginal'>true</entry>
|
2016-03-19 05:41:23 +08:00
|
|
|
|
2016-06-10 07:34:48 +08:00
|
|
|
<entry key='database.changelog'>./schema/changelog-master.xml</entry>
|
2015-12-17 10:47:18 +08:00
|
|
|
|
2016-07-12 21:04:40 +08:00
|
|
|
<entry key='database.positionsHistoryDays'>7</entry>
|
|
|
|
|
2015-06-17 06:50:51 +08:00
|
|
|
<entry key='database.selectServers'>
|
2016-10-19 17:17:12 +08:00
|
|
|
SELECT * FROM server
|
2015-06-17 06:50:51 +08:00
|
|
|
</entry>
|
|
|
|
|
2015-06-10 00:10:50 +08:00
|
|
|
<entry key='database.updateServer'>
|
2015-07-25 15:05:33 +08:00
|
|
|
UPDATE server SET
|
|
|
|
registration = :registration,
|
2015-12-16 07:52:01 +08:00
|
|
|
readonly = :readonly,
|
2015-07-25 15:05:33 +08:00
|
|
|
map = :map,
|
2015-08-23 17:38:39 +08:00
|
|
|
bingKey = :bingKey,
|
2015-08-23 18:40:49 +08:00
|
|
|
mapUrl = :mapUrl,
|
2015-07-25 15:05:33 +08:00
|
|
|
distanceUnit = :distanceUnit,
|
|
|
|
speedUnit = :speedUnit,
|
|
|
|
latitude = :latitude,
|
|
|
|
longitude = :longitude,
|
2016-03-13 07:18:15 +08:00
|
|
|
zoom = :zoom,
|
2016-07-25 20:47:50 +08:00
|
|
|
twelveHourFormat = :twelveHourFormat,
|
|
|
|
attributes = :attributes
|
2016-10-19 17:17:12 +08:00
|
|
|
WHERE id = :id
|
2015-06-10 00:10:50 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.loginUser'>
|
2015-12-18 11:32:46 +08:00
|
|
|
SELECT * FROM users
|
2016-10-19 17:17:12 +08:00
|
|
|
WHERE email = :email
|
2015-06-10 00:10:50 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.selectUsersAll'>
|
2016-10-19 17:17:12 +08:00
|
|
|
SELECT * FROM users
|
2015-06-10 00:10:50 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.insertUser'>
|
2016-07-13 14:38:53 +08:00
|
|
|
INSERT INTO users (name, email, hashedPassword, salt, admin, map, distanceUnit, speedUnit, latitude, longitude, zoom, twelveHourFormat, attributes)
|
2016-10-19 17:17:12 +08:00
|
|
|
VALUES (:name, :email, :hashedPassword, :salt, :admin, :map, :distanceUnit, :speedUnit, :latitude, :longitude, :zoom, :twelveHourFormat, :attributes)
|
2015-06-10 00:10:50 +08:00
|
|
|
</entry>
|
2015-06-17 06:50:51 +08:00
|
|
|
|
2015-06-10 00:10:50 +08:00
|
|
|
<entry key='database.updateUser'>
|
2015-12-18 11:32:46 +08:00
|
|
|
UPDATE users SET
|
2015-07-25 15:05:33 +08:00
|
|
|
name = :name,
|
|
|
|
email = :email,
|
|
|
|
admin = :admin,
|
|
|
|
map = :map,
|
|
|
|
distanceUnit = :distanceUnit,
|
|
|
|
speedUnit = :speedUnit,
|
|
|
|
latitude = :latitude,
|
|
|
|
longitude = :longitude,
|
2016-03-13 07:18:15 +08:00
|
|
|
zoom = :zoom,
|
2016-07-13 14:38:53 +08:00
|
|
|
twelveHourFormat = :twelveHourFormat,
|
|
|
|
attributes = :attributes
|
2016-10-19 17:17:12 +08:00
|
|
|
WHERE id = :id
|
2015-06-10 00:10:50 +08:00
|
|
|
</entry>
|
|
|
|
|
2015-06-10 03:29:27 +08:00
|
|
|
<entry key='database.updateUserPassword'>
|
2016-10-19 17:17:12 +08:00
|
|
|
UPDATE users SET hashedPassword = :hashedPassword, salt = :salt WHERE id = :id
|
2015-06-10 03:29:27 +08:00
|
|
|
</entry>
|
2015-10-17 07:35:16 +08:00
|
|
|
|
2015-06-10 00:10:50 +08:00
|
|
|
<entry key='database.deleteUser'>
|
2016-10-19 17:17:12 +08:00
|
|
|
DELETE FROM users WHERE id = :id
|
2015-06-10 00:10:50 +08:00
|
|
|
</entry>
|
|
|
|
|
2016-03-08 18:38:48 +08:00
|
|
|
<entry key='database.selectDevicePermissions'>
|
2016-10-19 17:17:12 +08:00
|
|
|
SELECT userId, deviceId FROM user_device
|
2015-06-10 00:10:50 +08:00
|
|
|
</entry>
|
2015-10-17 07:35:16 +08:00
|
|
|
|
2016-03-08 18:38:48 +08:00
|
|
|
<entry key='database.selectGroupPermissions'>
|
2016-10-19 17:17:12 +08:00
|
|
|
SELECT userId, groupId FROM user_group
|
2016-03-08 18:38:48 +08:00
|
|
|
</entry>
|
|
|
|
|
2015-06-17 06:50:51 +08:00
|
|
|
<entry key='database.selectDevicesAll'>
|
2016-10-19 17:17:12 +08:00
|
|
|
SELECT * FROM devices
|
2012-04-25 02:59:31 +08:00
|
|
|
</entry>
|
2015-10-17 07:35:16 +08:00
|
|
|
|
2015-06-10 00:10:50 +08:00
|
|
|
<entry key='database.insertDevice'>
|
2016-10-19 17:17:12 +08:00
|
|
|
INSERT INTO devices (name, uniqueId, groupId, attributes) VALUES (:name, :uniqueId, :groupId, :attributes)
|
2015-06-10 00:10:50 +08:00
|
|
|
</entry>
|
2015-10-17 07:35:16 +08:00
|
|
|
|
2015-06-10 00:10:50 +08:00
|
|
|
<entry key='database.updateDevice'>
|
2016-10-19 17:17:12 +08:00
|
|
|
UPDATE devices SET name = :name, uniqueId = :uniqueId, groupId = :groupId, attributes = :attributes WHERE id = :id
|
2015-06-10 00:10:50 +08:00
|
|
|
</entry>
|
2015-10-17 07:35:16 +08:00
|
|
|
|
2015-11-16 06:46:59 +08:00
|
|
|
<entry key='database.updateDeviceStatus'>
|
2016-10-19 17:17:12 +08:00
|
|
|
UPDATE devices SET lastUpdate = :lastUpdate WHERE id = :id
|
2015-11-16 06:46:59 +08:00
|
|
|
</entry>
|
|
|
|
|
2015-06-17 06:50:51 +08:00
|
|
|
<entry key='database.deleteDevice'>
|
2016-10-19 17:17:12 +08:00
|
|
|
DELETE FROM devices WHERE id = :id
|
2015-06-10 00:10:50 +08:00
|
|
|
</entry>
|
2015-10-17 07:35:16 +08:00
|
|
|
|
2015-06-10 00:10:50 +08:00
|
|
|
<entry key='database.linkDevice'>
|
2016-10-19 17:17:12 +08:00
|
|
|
INSERT INTO user_device (userId, deviceId) VALUES (:userId, :deviceId)
|
2015-06-10 00:10:50 +08:00
|
|
|
</entry>
|
|
|
|
|
2015-10-17 07:35:16 +08:00
|
|
|
<entry key='database.unlinkDevice'>
|
2016-10-19 17:17:12 +08:00
|
|
|
DELETE FROM user_device WHERE userId = :userId AND deviceId = :deviceId
|
2015-10-17 07:35:16 +08:00
|
|
|
</entry>
|
|
|
|
|
2016-03-09 11:09:00 +08:00
|
|
|
<entry key='database.selectGroupsAll'>
|
2016-10-19 17:17:12 +08:00
|
|
|
SELECT * FROM groups
|
2016-03-09 11:09:00 +08:00
|
|
|
</entry>
|
|
|
|
|
2016-03-08 18:31:06 +08:00
|
|
|
<entry key='database.insertGroup'>
|
2016-10-19 17:17:12 +08:00
|
|
|
INSERT INTO groups (name, groupId, attributes) VALUES (:name, :groupId, :attributes)
|
2016-03-08 18:31:06 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.updateGroup'>
|
2016-10-19 17:17:12 +08:00
|
|
|
UPDATE groups SET name = :name, groupId = :groupId, attributes = :attributes WHERE id = :id
|
2016-03-08 18:31:06 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.deleteGroup'>
|
2016-10-19 17:17:12 +08:00
|
|
|
DELETE FROM groups WHERE id = :id
|
2016-03-08 18:31:06 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.linkGroup'>
|
2016-10-19 17:17:12 +08:00
|
|
|
INSERT INTO user_group (userId, groupId) VALUES (:userId, :groupId)
|
2016-03-08 18:31:06 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.unlinkGroup'>
|
2016-10-19 17:17:12 +08:00
|
|
|
DELETE FROM user_group WHERE userId = :userId AND groupId = :groupId
|
2016-03-08 18:31:06 +08:00
|
|
|
</entry>
|
|
|
|
|
2015-06-10 00:10:50 +08:00
|
|
|
<entry key='database.selectPositions'>
|
2016-10-19 17:17:12 +08:00
|
|
|
SELECT * FROM positions WHERE deviceId = :deviceId AND fixTime BETWEEN :from AND :to ORDER BY fixTime
|
2015-06-10 06:45:22 +08:00
|
|
|
</entry>
|
2012-04-25 02:59:31 +08:00
|
|
|
|
2013-01-13 13:19:27 +08:00
|
|
|
<entry key='database.insertPosition'>
|
2015-12-18 11:32:46 +08:00
|
|
|
INSERT INTO positions (deviceId, protocol, serverTime, deviceTime, fixTime, valid, latitude, longitude, altitude, speed, course, address, attributes)
|
2016-10-19 17:17:12 +08:00
|
|
|
VALUES (:deviceId, :protocol, :now, :deviceTime, :fixTime, :valid, :latitude, :longitude, :altitude, :speed, :course, :address, :attributes)
|
2013-01-11 19:56:03 +08:00
|
|
|
</entry>
|
|
|
|
|
2015-06-17 07:14:32 +08:00
|
|
|
<entry key='database.selectLatestPositions'>
|
2016-10-19 17:17:12 +08:00
|
|
|
SELECT * FROM positions WHERE id IN (SELECT positionId FROM devices)
|
2015-06-17 07:14:32 +08:00
|
|
|
</entry>
|
|
|
|
|
2013-01-13 13:19:27 +08:00
|
|
|
<entry key='database.updateLatestPosition'>
|
2016-10-19 17:17:12 +08:00
|
|
|
UPDATE devices SET positionId = :id WHERE id = :deviceId
|
2012-04-25 02:59:31 +08:00
|
|
|
</entry>
|
|
|
|
|
2016-06-13 20:03:14 +08:00
|
|
|
<entry key='database.selectEvent'>
|
2016-10-19 17:17:12 +08:00
|
|
|
SELECT * FROM events WHERE id = :id
|
2016-06-13 20:03:14 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.insertEvent'>
|
|
|
|
INSERT INTO events (type, serverTime, deviceId, positionId, geofenceId, attributes)
|
2016-10-19 17:17:12 +08:00
|
|
|
VALUES (:type, :serverTime, :deviceId, :positionId, :geofenceId, :attributes)
|
2016-06-13 20:03:14 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.selectEvents'>
|
2016-10-19 21:35:28 +08:00
|
|
|
SELECT * FROM events WHERE deviceId = :deviceId AND serverTime BETWEEN :from AND :to ORDER BY serverTime
|
2016-06-13 20:03:14 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.selectGeofencesAll'>
|
2016-10-19 17:17:12 +08:00
|
|
|
SELECT * FROM geofences
|
2016-06-13 20:03:14 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.insertGeofence'>
|
|
|
|
INSERT INTO geofences (name, description, area, attributes)
|
2016-10-19 17:17:12 +08:00
|
|
|
VALUES (:name, :description, :area, :attributes)
|
2016-06-13 20:03:14 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.updateGeofence'>
|
|
|
|
UPDATE geofences SET
|
|
|
|
name = :name,
|
|
|
|
description = :description,
|
|
|
|
area = :area,
|
|
|
|
attributes = :attributes
|
2016-10-19 17:17:12 +08:00
|
|
|
WHERE id = :id
|
2016-06-13 20:03:14 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.deleteGeofence'>
|
2016-10-19 17:17:12 +08:00
|
|
|
DELETE FROM geofences WHERE id = :id
|
2016-06-13 20:03:14 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.selectGeofencePermissions'>
|
2016-10-19 17:17:12 +08:00
|
|
|
SELECT userId, geofenceId FROM user_geofence
|
2016-06-13 20:03:14 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.linkGeofence'>
|
2016-10-19 17:17:12 +08:00
|
|
|
INSERT INTO user_geofence (userId, geofenceId) VALUES (:userId, :geofenceId)
|
2016-06-13 20:03:14 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.unlinkGeofence'>
|
2016-10-19 17:17:12 +08:00
|
|
|
DELETE FROM user_geofence WHERE userId = :userId AND geofenceId = :geofenceId
|
2016-06-13 20:03:14 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.selectGroupGeofences'>
|
2016-10-19 17:17:12 +08:00
|
|
|
SELECT groupId, geofenceId FROM group_geofence
|
2016-06-13 20:03:14 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.linkGroupGeofence'>
|
2016-10-19 17:17:12 +08:00
|
|
|
INSERT INTO group_geofence (groupId, geofenceId) VALUES (:groupId, :geofenceId)
|
2016-06-13 20:03:14 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.unlinkGroupGeofence'>
|
2016-10-19 17:17:12 +08:00
|
|
|
DELETE FROM group_geofence WHERE groupId = :groupId AND geofenceId = :geofenceId
|
2016-06-13 20:03:14 +08:00
|
|
|
</entry>
|
|
|
|
|
2016-06-14 21:05:05 +08:00
|
|
|
<entry key='database.selectDeviceGeofences'>
|
2016-10-19 17:17:12 +08:00
|
|
|
SELECT deviceId, geofenceId FROM device_geofence
|
2016-06-13 20:03:14 +08:00
|
|
|
</entry>
|
|
|
|
|
2016-06-14 21:05:05 +08:00
|
|
|
<entry key='database.linkDeviceGeofence'>
|
2016-10-19 17:17:12 +08:00
|
|
|
INSERT INTO device_geofence (deviceId, geofenceId) VALUES (:deviceId, :geofenceId)
|
2016-06-13 20:03:14 +08:00
|
|
|
</entry>
|
|
|
|
|
2016-06-14 21:05:05 +08:00
|
|
|
<entry key='database.unlinkDeviceGeofence'>
|
2016-10-19 17:17:12 +08:00
|
|
|
DELETE FROM device_geofence WHERE deviceId = :deviceId AND geofenceId = :geofenceId
|
2016-06-13 20:03:14 +08:00
|
|
|
</entry>
|
|
|
|
|
2016-06-26 03:51:33 +08:00
|
|
|
<entry key='database.selectNotifications'>
|
2016-10-19 17:17:12 +08:00
|
|
|
SELECT * FROM notifications
|
2016-06-26 03:51:33 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.insertNotification'>
|
|
|
|
INSERT INTO notifications (userId, type, attributes)
|
2016-10-19 17:17:12 +08:00
|
|
|
VALUES (:userId, :type, :attributes)
|
2016-06-26 03:51:33 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.updateNotification'>
|
|
|
|
UPDATE notifications SET
|
|
|
|
userId = :userId,
|
|
|
|
type = :type,
|
|
|
|
attributes = :attributes
|
2016-10-19 17:17:12 +08:00
|
|
|
WHERE id = :id
|
2016-06-26 03:51:33 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.deleteNotification'>
|
2016-10-19 17:17:12 +08:00
|
|
|
DELETE FROM notifications WHERE id = :id
|
2016-06-26 03:51:33 +08:00
|
|
|
</entry>
|
|
|
|
|
2016-07-25 12:49:08 +08:00
|
|
|
<entry key='database.deletePositions'>
|
2016-10-19 17:17:12 +08:00
|
|
|
DELETE FROM positions WHERE serverTime < :serverTime AND id NOT IN (SELECT positionId FROM devices)
|
2016-07-13 20:29:39 +08:00
|
|
|
</entry>
|
2016-09-21 19:27:55 +08:00
|
|
|
|
|
|
|
<entry key='database.selectAttributeAliases'>
|
2016-10-19 17:17:12 +08:00
|
|
|
SELECT * FROM attribute_aliases
|
2016-09-21 19:27:55 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.insertAttributeAlias'>
|
2016-09-22 13:44:29 +08:00
|
|
|
INSERT INTO attribute_aliases (deviceId, attribute, alias)
|
2016-10-19 17:17:12 +08:00
|
|
|
VALUES (:deviceId, :attribute, :alias)
|
2016-09-21 19:27:55 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.updateAttributeAlias'>
|
2016-09-22 13:44:29 +08:00
|
|
|
UPDATE attribute_aliases SET
|
2016-09-21 19:27:55 +08:00
|
|
|
deviceId = :deviceId,
|
|
|
|
attribute = :attribute,
|
|
|
|
alias = :alias
|
2016-10-19 17:17:12 +08:00
|
|
|
WHERE id = :id
|
2016-09-21 19:27:55 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.deleteAttributeAlias'>
|
2016-10-19 17:17:12 +08:00
|
|
|
DELETE FROM attribute_aliases WHERE id = :id
|
2016-09-21 19:27:55 +08:00
|
|
|
</entry>
|
2016-07-13 20:29:39 +08:00
|
|
|
|
2016-09-25 09:51:16 +08:00
|
|
|
<entry key='database.selectStatistics'>
|
2016-10-19 17:17:12 +08:00
|
|
|
SELECT * FROM statistics WHERE captureTime BETWEEN :from AND :to ORDER BY captureTime
|
2016-09-25 09:51:16 +08:00
|
|
|
</entry>
|
|
|
|
|
|
|
|
<entry key='database.insertStatistics'>
|
|
|
|
INSERT INTO statistics (captureTime, activeUsers, activeDevices, requests, messagesReceived, messagesStored, attributes)
|
2016-10-19 17:17:12 +08:00
|
|
|
VALUES (:captureTime, :activeUsers, :activeDevices, :requests, :messagesReceived, :messagesStored, :attributes)
|
2016-09-25 09:51:16 +08:00
|
|
|
</entry>
|
|
|
|
|
2015-06-05 12:49:40 +08:00
|
|
|
<!-- PROTOCOL CONFIG -->
|
|
|
|
|
2013-01-13 13:19:27 +08:00
|
|
|
<entry key='gps103.port'>5001</entry>
|
|
|
|
<entry key='tk103.port'>5002</entry>
|
|
|
|
<entry key='gl100.port'>5003</entry>
|
|
|
|
<entry key='gl200.port'>5004</entry>
|
|
|
|
<entry key='t55.port'>5005</entry>
|
2015-01-15 08:41:56 +08:00
|
|
|
<entry key='xexun.port'>5006</entry>
|
|
|
|
<entry key='xexun.extended'>false</entry>
|
2013-11-03 06:56:19 +08:00
|
|
|
<entry key='totem.port'>5007</entry>
|
2013-01-13 13:19:27 +08:00
|
|
|
<entry key='enfora.port'>5008</entry>
|
|
|
|
<entry key='meiligao.port'>5009</entry>
|
2015-11-06 04:59:54 +08:00
|
|
|
<entry key='trv.port'>5010</entry>
|
2013-08-04 17:02:29 +08:00
|
|
|
<entry key='suntech.port'>5011</entry>
|
2013-01-13 13:19:27 +08:00
|
|
|
<entry key='progress.port'>5012</entry>
|
|
|
|
<entry key='h02.port'>5013</entry>
|
|
|
|
<entry key='jt600.port'>5014</entry>
|
2015-11-07 07:18:56 +08:00
|
|
|
<entry key='huabao.port'>5015</entry>
|
2013-01-13 13:19:27 +08:00
|
|
|
<entry key='v680.port'>5016</entry>
|
|
|
|
<entry key='pt502.port'>5017</entry>
|
|
|
|
<entry key='tr20.port'>5018</entry>
|
|
|
|
<entry key='navis.port'>5019</entry>
|
|
|
|
<entry key='meitrack.port'>5020</entry>
|
|
|
|
<entry key='skypatrol.port'>5021</entry>
|
|
|
|
<entry key='gt02.port'>5022</entry>
|
|
|
|
<entry key='gt06.port'>5023</entry>
|
2013-01-18 18:02:18 +08:00
|
|
|
<entry key='megastek.port'>5024</entry>
|
2013-01-30 18:00:40 +08:00
|
|
|
<entry key='navigil.port'>5025</entry>
|
2013-02-08 14:49:56 +08:00
|
|
|
<entry key='gpsgate.port'>5026</entry>
|
2013-02-03 11:03:07 +08:00
|
|
|
<entry key='teltonika.port'>5027</entry>
|
2013-02-08 14:49:56 +08:00
|
|
|
<entry key='mta6.port'>5028</entry>
|
2015-07-18 14:21:19 +08:00
|
|
|
<entry key='tzone.port'>5029</entry>
|
2013-02-10 08:08:35 +08:00
|
|
|
<entry key='tlt2h.port'>5030</entry>
|
2015-06-29 09:27:58 +08:00
|
|
|
<entry key='taip.port'>5031</entry>
|
2013-03-23 06:01:41 +08:00
|
|
|
<entry key='wondex.port'>5032</entry>
|
2013-03-18 17:47:15 +08:00
|
|
|
<entry key='cellocator.port'>5033</entry>
|
2013-03-19 17:15:35 +08:00
|
|
|
<entry key='galileo.port'>5034</entry>
|
2013-03-23 07:50:05 +08:00
|
|
|
<entry key='ywt.port'>5035</entry>
|
2013-04-09 19:38:11 +08:00
|
|
|
<entry key='tk102.port'>5036</entry>
|
2015-12-27 05:03:21 +08:00
|
|
|
<!--<entry key='intellitrac.port'>5037</entry>-->
|
2015-09-23 09:11:12 +08:00
|
|
|
<entry key='gpsmta.port'>5038</entry>
|
2013-04-27 17:08:40 +08:00
|
|
|
<entry key='wialon.port'>5039</entry>
|
2013-04-28 08:59:54 +08:00
|
|
|
<entry key='carscop.port'>5040</entry>
|
2013-05-15 18:18:04 +08:00
|
|
|
<entry key='apel.port'>5041</entry>
|
2013-05-29 18:11:59 +08:00
|
|
|
<entry key='manpower.port'>5042</entry>
|
2013-06-03 12:12:35 +08:00
|
|
|
<entry key='globalsat.port'>5043</entry>
|
2013-06-18 18:15:55 +08:00
|
|
|
<entry key='atrack.port'>5044</entry>
|
2013-07-26 18:04:38 +08:00
|
|
|
<entry key='pt3000.port'>5045</entry>
|
2013-08-06 18:18:45 +08:00
|
|
|
<entry key='ruptela.port'>5046</entry>
|
2013-08-09 17:46:58 +08:00
|
|
|
<entry key='topflytech.port'>5047</entry>
|
2013-08-10 21:38:22 +08:00
|
|
|
<entry key='laipac.port'>5048</entry>
|
|
|
|
<entry key='aplicom.port'>5049</entry>
|
2013-08-12 18:45:47 +08:00
|
|
|
<entry key='gotop.port'>5050</entry>
|
2013-11-03 06:56:19 +08:00
|
|
|
<entry key='sanav.port'>5051</entry>
|
2013-08-17 18:35:30 +08:00
|
|
|
<entry key='gator.port'>5052</entry>
|
2013-08-18 17:47:03 +08:00
|
|
|
<entry key='noran.port'>5053</entry>
|
2013-08-20 16:19:32 +08:00
|
|
|
<entry key='m2m.port'>5054</entry>
|
2013-08-22 21:19:09 +08:00
|
|
|
<entry key='osmand.port'>5055</entry>
|
2013-08-23 18:46:45 +08:00
|
|
|
<entry key='easytrack.port'>5056</entry>
|
2015-07-17 18:05:18 +08:00
|
|
|
<entry key='gpsmarker.port'>5057</entry>
|
2014-01-18 14:07:39 +08:00
|
|
|
<entry key='khd.port'>5058</entry>
|
2014-01-19 17:52:14 +08:00
|
|
|
<entry key='piligrim.port'>5059</entry>
|
2014-02-23 14:55:15 +08:00
|
|
|
<entry key='stl060.port'>5060</entry>
|
2014-04-20 13:08:58 +08:00
|
|
|
<entry key='cartrack.port'>5061</entry>
|
2014-04-27 14:38:40 +08:00
|
|
|
<entry key='minifinder.port'>5062</entry>
|
2014-05-21 17:20:45 +08:00
|
|
|
<entry key='haicom.port'>5063</entry>
|
2014-05-25 08:08:46 +08:00
|
|
|
<entry key='eelink.port'>5064</entry>
|
2014-06-01 16:37:44 +08:00
|
|
|
<entry key='box.port'>5065</entry>
|
2014-06-02 18:39:48 +08:00
|
|
|
<entry key='freedom.port'>5066</entry>
|
2016-02-21 06:04:48 +08:00
|
|
|
<entry key='telic.port'>5067</entry>
|
2014-06-22 16:39:49 +08:00
|
|
|
<entry key='trackbox.port'>5068</entry>
|
2014-08-17 20:54:12 +08:00
|
|
|
<entry key='visiontek.port'>5069</entry>
|
2014-08-27 18:12:39 +08:00
|
|
|
<entry key='orion.port'>5070</entry>
|
2014-09-10 18:49:18 +08:00
|
|
|
<entry key='riti.port'>5071</entry>
|
2014-12-24 10:33:04 +08:00
|
|
|
<entry key='ulbotech.port'>5072</entry>
|
2014-12-30 10:38:35 +08:00
|
|
|
<entry key='tramigo.port'>5073</entry>
|
2015-01-15 06:35:11 +08:00
|
|
|
<entry key='tr900.port'>5074</entry>
|
2015-01-15 06:51:14 +08:00
|
|
|
<entry key='ardi01.port'>5075</entry>
|
2015-01-21 07:29:32 +08:00
|
|
|
<entry key='xt013.port'>5076</entry>
|
2015-01-21 08:30:01 +08:00
|
|
|
<entry key='autofon.port'>5077</entry>
|
2015-02-14 06:25:02 +08:00
|
|
|
<entry key='gosafe.port'>5078</entry>
|
2016-02-21 05:27:08 +08:00
|
|
|
<entry key='tt8850.port'>5079</entry>
|
2015-02-28 07:09:43 +08:00
|
|
|
<entry key='bce.port'>5080</entry>
|
2015-03-01 05:35:55 +08:00
|
|
|
<entry key='xirgo.port'>5081</entry>
|
2015-04-11 05:56:59 +08:00
|
|
|
<entry key='calamp.port'>5082</entry>
|
2015-04-11 06:52:42 +08:00
|
|
|
<entry key='mtx.port'>5083</entry>
|
2015-04-18 14:17:54 +08:00
|
|
|
<entry key='tytan.port'>5084</entry>
|
2015-04-24 11:58:59 +08:00
|
|
|
<entry key='avl301.port'>5085</entry>
|
2015-05-31 16:07:39 +08:00
|
|
|
<entry key='castel.port'>5086</entry>
|
2015-06-23 10:04:52 +08:00
|
|
|
<entry key='mxt.port'>5087</entry>
|
2015-07-24 11:24:55 +08:00
|
|
|
<entry key='cityeasy.port'>5088</entry>
|
2015-09-24 10:56:35 +08:00
|
|
|
<entry key='aquila.port'>5089</entry>
|
2015-09-25 07:00:38 +08:00
|
|
|
<entry key='flextrack.port'>5090</entry>
|
2015-09-28 19:20:26 +08:00
|
|
|
<entry key='blackkite.port'>5091</entry>
|
2015-10-19 11:34:42 +08:00
|
|
|
<entry key='adm.port'>5092</entry>
|
2015-10-30 13:50:43 +08:00
|
|
|
<entry key='watch.port'>5093</entry>
|
2015-11-01 13:41:40 +08:00
|
|
|
<entry key='t800x.port'>5094</entry>
|
2015-12-13 03:23:26 +08:00
|
|
|
<entry key='upro.port'>5095</entry>
|
2016-01-07 04:30:38 +08:00
|
|
|
<entry key='auro.port'>5096</entry>
|
2015-12-13 16:16:45 +08:00
|
|
|
<entry key='disha.port'>5097</entry>
|
2015-12-15 16:26:55 +08:00
|
|
|
<entry key='thinkrace.port'>5098</entry>
|
2015-12-16 15:30:55 +08:00
|
|
|
<entry key='pathaway.port'>5099</entry>
|
2015-12-17 15:43:07 +08:00
|
|
|
<entry key='arnavi.port'>5100</entry>
|
2016-01-02 06:36:43 +08:00
|
|
|
<entry key='nvs.port'>5101</entry>
|
2016-01-25 09:42:09 +08:00
|
|
|
<entry key='kenji.port'>5102</entry>
|
2016-02-15 06:17:57 +08:00
|
|
|
<entry key='astra.port'>5103</entry>
|
2016-02-19 07:55:17 +08:00
|
|
|
<entry key='homtecs.port'>5104</entry>
|
2016-03-14 09:24:41 +08:00
|
|
|
<entry key='fox.port'>5105</entry>
|
2016-03-18 05:19:33 +08:00
|
|
|
<entry key='gnx.port'>5106</entry>
|
2016-03-19 09:36:22 +08:00
|
|
|
<entry key='arknav.port'>5107</entry>
|
2016-03-30 11:11:06 +08:00
|
|
|
<entry key='supermate.port'>5108</entry>
|
2016-04-12 10:47:13 +08:00
|
|
|
<entry key='appello.port'>5109</entry>
|
2016-06-09 09:57:12 +08:00
|
|
|
<entry key='idpl.port'>5110</entry>
|
2016-06-24 12:50:59 +08:00
|
|
|
<entry key='huasheng.port'>5111</entry>
|
2016-07-06 12:31:44 +08:00
|
|
|
<entry key='l100.port'>5112</entry>
|
2016-07-05 20:16:06 +08:00
|
|
|
<entry key='granit.port'>5113</entry>
|
2016-07-18 08:56:02 +08:00
|
|
|
<entry key='carcell.port'>5114</entry>
|
2016-08-05 19:23:00 +08:00
|
|
|
<entry key='obddongle.port'>5115</entry>
|
2016-08-23 08:54:00 +08:00
|
|
|
<entry key='hunterpro.port'>5116</entry>
|
2016-08-26 02:11:30 +08:00
|
|
|
<entry key='raveon.port'>5117</entry>
|
2016-09-01 23:41:11 +08:00
|
|
|
<entry key='cradlepoint.port'>5118</entry>
|
2016-09-15 02:53:37 +08:00
|
|
|
<entry key='arknavx8.port'>5119</entry>
|
2016-09-15 04:20:45 +08:00
|
|
|
<entry key='autograde.port'>5120</entry>
|
2016-09-17 12:41:58 +08:00
|
|
|
<entry key='oigo.port'>5121</entry>
|
2016-09-18 20:43:36 +08:00
|
|
|
<entry key='jpkorjar.port'>5122</entry>
|
2016-09-21 15:31:39 +08:00
|
|
|
<entry key='cguard.port'>5123</entry>
|
2016-09-30 01:42:42 +08:00
|
|
|
<entry key='fifotrack.port'>5124</entry>
|
2016-10-03 03:09:22 +08:00
|
|
|
<entry key='smokey.port'>5125</entry>
|
2016-10-11 00:24:36 +08:00
|
|
|
<entry key='extremtrac.port'>5126</entry>
|
2016-10-03 21:23:45 +08:00
|
|
|
<entry key='trakmate.port'>5127</entry>
|
2015-05-31 16:07:39 +08:00
|
|
|
|
2012-04-25 02:59:31 +08:00
|
|
|
</properties>
|