Skip to content

Commit

Permalink
Update getARGO_SOAP.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunwbell committed Jul 21, 2021
1 parent e0924de commit a2b2edb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions getARGO_SOAP.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a2b2edb

Please sign in to comment.