diff options
author | ninioe <ninioe@gmail.com> | 2016-07-17 09:54:15 +0300 |
---|---|---|
committer | ninioe <ninioe@gmail.com> | 2016-07-17 09:54:15 +0300 |
commit | 4d55b911bd252c90d1d0ec4053d8502154192676 (patch) | |
tree | 5cb88f24fb5ba9edbec1bd0593ed2878c401bb2d /tools | |
parent | 636f6e19b4ae7fbd80ff083498fface8c12ee9c8 (diff) | |
download | trackermap-server-4d55b911bd252c90d1d0ec4053d8502154192676.tar.gz trackermap-server-4d55b911bd252c90d1d0ec4053d8502154192676.tar.bz2 trackermap-server-4d55b911bd252c90d1d0ec4053d8502154192676.zip |
Added AlertEventHandler & Mute button for all notifications
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/test-generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/test-generator.py b/tools/test-generator.py index 09fb65611..54e5feced 100755 --- a/tools/test-generator.py +++ b/tools/test-generator.py @@ -35,7 +35,7 @@ for i in range(0, len(waypoints)): def send(lat, lon, course, alarm): params = (('id', id), ('timestamp', int(time.time())), ('lat', lat), ('lon', lon), ('bearing', course)) if alarm: - params = params + (('alarm', 'true'),) + params = params + (('alarm', 'sosAlarm'),) urllib2.urlopen(server + '?' + urllib.urlencode(params)).read() def course(lat1, lon1, lat2, lon2): @@ -52,7 +52,7 @@ index = 0 while True: (lat1, lon1) = points[index % len(points)] (lat2, lon2) = points[(index + 1) % len(points)] - alarm = False #((index % 10) == 0) + alarm = ((index % 10) == 0) send(lat1, lon1, course(lat1, lon1, lat2, lon2), alarm) time.sleep(period) index += 1 |