Commit e18db63e authored by markus's avatar markus

Make observer parameter optional

parent fdea42b6
......@@ -10,19 +10,20 @@ import re
import urllib.parse
import urllib.request
def get_past_station_observations(satnogs_address, station, satellite, observer, start_time=None):
def get_past_station_observations(satnogs_address, station, satellite, observer=None, start_time=None):
data = {
"future": 0,
"bad": 0,
"unvetted": 0,
"failed": 0,
"norad": satellite,
"observer": observer,
"station": station,
"results": "d1", # only those with data
}
if start_time:
data["start-time"] = start_time
if observer:
data["observer"] = observer
values = urllib.parse.urlencode(data)
url = satnogs_address + "/observations/?" + values
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment