summaryrefslogtreecommitdiff
path: root/server/piztor/prober.py
blob: cd952ef0430484d2ffdf80e890debd3fb4e7aa7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from random import random
from time import sleep

from sys import argv
from ptp_send import *

username = "haha"
password = "haha"
#username = "12345678901234567890"
#password = "world123456789012345"

if len(argv) == 2:
    host = argv[1]

if len(argv) == 3:
    username = argv[1]
    password = argv[2]


token = user_auth(username, password)
print "Client: " + username + "logged in"
#open_push_tunnel(token, username)
for i in xrange(10):
    print "Client: " + username  + " updateing"
    update_location(token, username, 123.456, 123.456)
    sleep(10)