aboutsummaryrefslogtreecommitdiff
path: root/debug.xml
diff options
context:
space:
mode:
authorIrving Gonzalez <ialexis93@gmail.com>2015-06-10 20:06:30 -0600
committerIrving Gonzalez <ialexis93@gmail.com>2015-06-10 20:06:30 -0600
commit5dc81b6197b9a1387adffdc2628c24ca483d2376 (patch)
tree812748a9516801cd07bb20006d4c9afddce1a65b /debug.xml
parent81e7ae399eab4e93113af68de2361cea1b82b58b (diff)
downloadtrackermap-server-5dc81b6197b9a1387adffdc2628c24ca483d2376.tar.gz
trackermap-server-5dc81b6197b9a1387adffdc2628c24ca483d2376.tar.bz2
trackermap-server-5dc81b6197b9a1387adffdc2628c24ca483d2376.zip
Begin implementing alerts
Diffstat (limited to 'debug.xml')
-rw-r--r--debug.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/debug.xml b/debug.xml
index 7b0cf0724..b54b2e7de 100644
--- a/debug.xml
+++ b/debug.xml
@@ -24,6 +24,8 @@
<entry key='filter.zero'>true</entry>
<entry key='filter.duplicate'>true</entry>
<entry key='filter.distance'>50</entry>-->
+
+ <entry key='alert.enable'>true</entry>
<entry key='logger.enable'>true</entry>
<entry key='logger.level'>all</entry>
@@ -202,6 +204,13 @@
UPDATE device SET positionId = :id WHERE id = :deviceId;
</entry>
+ <entry key='database.getAlertsByDevice'>
+ SELECT a.id, a.idTipo, av.idVehicle, a.idGeofence, a.emails, a.velMax, a.tiempoMinpar, a.nombre, a.odometro, av.odometro_inicial
+ FROM alerta a
+ INNER JOIN alerta_vehiculo av ON a.id = av.idAlerta
+ INNER JOIN vehicle v ON av.idVehicle = v.id
+ WHERE v.idDevice = :deviceId;
+ </entry>
<!-- PROTOCOL CONFIG -->