Commit 7043e989 authored by markus's avatar markus

-v

parent f5cb2f6a
......@@ -109,6 +109,7 @@ def loop(satnogs_address, station, satellites, observer):
for observation in satnogs_query.get_past_station_observations(satnogs_address, station, satellite, observer, start_time = start_time):
if observation in processed_observations:
continue
logger.info(f"Processing new observation {observation}")
observation_data = satnogs_query.get_observation_data(satnogs_address, observation)
process_observation(observation, observation_data)
processed_observations.append(observation)
......
......@@ -37,6 +37,7 @@ def get_past_station_observations(satnogs_address, station, satellite, observer,
return observation_ids
def get_observation_data(satnogs_address, observation):
logger.info(f"Fetching data for observation {observation}")
url = f"{satnogs_address}/observations/{observation}/"
with urllib.request.urlopen(url) as response:
page = str(response.read())
......
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