aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorninioe <ninioe@gmail.com>2016-07-13 15:29:39 +0300
committerninioe <ninioe@gmail.com>2016-07-13 15:29:39 +0300
commit0e7cb81693a1067af81b6d74544f16d01fce8b6e (patch)
tree2c7069e1d124406d86a7abfa02e3cb7bae4fdf37 /tools
parentd045c1e2174146ddc8ad8b2ef4442863f3d84a11 (diff)
downloadtraccar-server-0e7cb81693a1067af81b6d74544f16d01fce8b6e.tar.gz
traccar-server-0e7cb81693a1067af81b6d74544f16d01fce8b6e.tar.bz2
traccar-server-0e7cb81693a1067af81b6d74544f16d01fce8b6e.zip
changes Anton asked me
Diffstat (limited to 'tools')
-rw-r--r--tools/minify.bat4
-rwxr-xr-xtools/test-generator.py3
2 files changed, 3 insertions, 4 deletions
diff --git a/tools/minify.bat b/tools/minify.bat
index dfa9c5895..6ab8fd94b 100644
--- a/tools/minify.bat
+++ b/tools/minify.bat
@@ -1,5 +1,5 @@
@echo off
-cd C:\Users\Erez\Documents\traccar\web
-set SDK=C:\inetpub\wwwroot\ext-6.0.0
+cd C:\[traccar path]\traccar\web
+set SDK=C:\[sencha path]\ext-6.0.0
sencha -sdk %SDK% compile -classpath=app.js,app,%SDK%\packages\core\src,%SDK%\packages\core\overrides,%SDK%\classic\classic\src,%SDK%\classic\classic\overrides exclude -all and include -recursive -file app.js and exclude -namespace=Ext and concatenate -closure app.min.js
diff --git a/tools/test-generator.py b/tools/test-generator.py
index 4beadc375..09fb65611 100755
--- a/tools/test-generator.py
+++ b/tools/test-generator.py
@@ -32,7 +32,6 @@ for i in range(0, len(waypoints)):
lon = lon1 + (lon2 - lon1) * j / count
points.append((lat, lon))
-#changed by Erez
def send(lat, lon, course, alarm):
params = (('id', id), ('timestamp', int(time.time())), ('lat', lat), ('lon', lon), ('bearing', course))
if alarm:
@@ -53,7 +52,7 @@ index = 0
while True:
(lat1, lon1) = points[index % len(points)]
(lat2, lon2) = points[(index + 1) % len(points)]
- alarm = ((index % 10) == 0)#added by Erez
+ alarm = False #((index % 10) == 0)
send(lat1, lon1, course(lat1, lon1, lat2, lon2), alarm)
time.sleep(period)
index += 1