diff --git a/getARGO_SOAP.py b/getARGO_SOAP.py index 7f6857d..c3b4470 100644 --- a/getARGO_SOAP.py +++ b/getARGO_SOAP.py @@ -25,6 +25,14 @@ # parse incoming command line options parser = argparse.ArgumentParser(description='Connect to argos.cls SOAP server for FOCI') +parser.add_argument('username', + metavar='username', + type=str, + help='program username') +parser.add_argument('password', + metavar='password', + type=str, + help='program password') parser.add_argument('service', metavar='service', type=str, @@ -58,8 +66,8 @@ startDate = datetime.datetime.strptime(args.startDate,'%Y-%m-%dT%H:%M:%S') endDate = startDate + datetime.timedelta(seconds=args.recordlength) -argodic = {'username':'bparker', - 'password':'invest', +argodic = {'username':args.username, + 'password':args.password, args.idMode:args.idnumber, 'period':{'startDate':startDate,'endDate':endDate}, 'mostRecentPassages':True,