Merge branch 'pr/starttime' into 'master'

Set --starttime default to (now + 10 minutes)

See merge request librespacefoundation/satnogs/satnogs-auto-scheduler!54
merge-requests/54/merge
Fabian P. Schmidt 2019-11-11 17:33:09 +00:00
commit b1f6cd005b
1 changed files with 3 additions and 2 deletions

View File

@ -47,8 +47,9 @@ def main():
parser.add_argument("-s", "--station", help="Ground station ID", type=int)
parser.add_argument("-t",
"--starttime",
help="Start time (YYYY-MM-DD HH:MM:SS) [default: now]",
default=datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%S"))
help="Start time (YYYY-MM-DDTHH:MM:SS) [default: now + 10 minutes]",
default=(datetime.utcnow() +
timedelta(minutes=10)).strftime("%Y-%m-%dT%H:%M:%S"))
parser.add_argument("-d",
"--duration",
help="Duration to schedule [hours; default: 1.0]",