From a2b2edb656423426d031d3926bf12a5228295266 Mon Sep 17 00:00:00 2001 From: Shaun Bell Date: Wed, 21 Jul 2021 08:46:06 -0700 Subject: [PATCH] Update getARGO_SOAP.py --- getARGO_SOAP.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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,