Commit 422c1932 authored by Tim Horst's avatar Tim Horst
Browse files

Disabled Https security checks

parent 3f802c25
......@@ -76,7 +76,7 @@
"uid": "jmuw_uhf-46505--2021-06-02--12",
"contact_type": "TELEMETRY",
"norad": 46505,
"satellite_frequency": 435600000.0000,
"satellite_frequency": 435600000.0,
"start": "2021-06-02 12:33:37",
"end": "2021-06-02 12:45:38",
"updated_on": "2021-04-23 02:17:53",
......@@ -86,11 +86,21 @@
"uid": "jmuw_uhf-46507--2021-06-02--12",
"contact_type": "TELEMETRY",
"norad": 46505,
"satellite_frequency": 435600000.0000,
"satellite_frequency": 435600000.0,
"start": "2021-06-02 12:47:04",
"end": "2021-06-02 12:58:48",
"updated_on": "2021-04-23 02:17:53",
"scheduling_method": "EVENT"
},
{
"uid": "jmuw_uhf-46505--2021-06-08--10",
"contact_type": "TELEMETRY",
"norad": 46505,
"satellite_frequency": 434.0,
"start": "2021-06-08 10:52:57",
"end": "2021-06-08 11:04:15",
"updated_on": "2021-06-08 09:32:07",
"scheduling_method": "PERIODIC"
}
],
"local": []
......
......@@ -158,7 +158,7 @@ class Satellite(ThreadedModule):
response = requests.get(url=config.endpoint_overpasses,
auth=(self.owner.username,
self.owner.password),
data=data)
data=data, verify = False)
if response.status_code == 200:
overpasses.extend(response.json()['overpasses'])
return overpasses
......@@ -176,7 +176,7 @@ class Satellite(ThreadedModule):
with session as s:
response = s.post(url=config.endpoint_requests,
auth=(self.owner.username, self.owner.password),
data=data)
data=data, verify = False)
# response = requests.post(url=config.endpoint_requests,
# auth=(self.owner.username,
......
......@@ -39,7 +39,7 @@ class Station(ThreadedModule):
self.longitude = longitude
self.height = height
self.el_min = el_min
self.schedule = []
self.schedule = {}
self.owner = None
self._is_setup = False
self.scheduling_horizon = kwargs[
......@@ -185,7 +185,7 @@ class Station(ThreadedModule):
def get_current_overpasses(self):
op = {}
local = None
print(self.schedule)
# check if the local schedule has an ongoing overpass
for schedule in self.schedule.get("local"):
if schedule['start'] <= datetime.datetime.utcnow()\
......@@ -249,7 +249,7 @@ class Station(ThreadedModule):
with session as s:
response = s.put(url=url,
auth=(self.owner.username, self.owner.password),
data=action)
data=action, verify = False)
# response = requests.put(url=url,
# auth=(self.owner.username,
......@@ -294,7 +294,7 @@ class Station(ThreadedModule):
with session as s:
response = s.put(url=url,
auth=(self.owner.username, self.owner.password),
data=action)
data=action, verify = False)
result = None
data = []
status = False
......@@ -330,7 +330,7 @@ class Station(ThreadedModule):
with session as s:
response = s.put(url=url,
auth=(self.owner.username, self.owner.password),
data=action)
data=action, verify = False)
logger.info(f"TIMGSN: {response.json()}")
@setup_required
......@@ -346,7 +346,7 @@ class Station(ThreadedModule):
with session as s:
response = s.put(url=url,
auth=(self.owner.username, self.owner.password),
data=action)
data=action, verify = False)
return response
@setup_required
......@@ -362,7 +362,7 @@ class Station(ThreadedModule):
response = requests.get(url=config.endpoint_requests,
auth=(self.owner.username,
self.owner.password),
data=data)
data=data, verify = False)
if response.status_code == 200:
received_requests = response.json()['requests']
tracking_requests = list(
......@@ -485,7 +485,7 @@ class Station(ThreadedModule):
response = requests.get(url=config.endpoint_overpasses,
auth=(self.owner.username,
self.owner.password),
data=data)
data=data, verify = False)
if response.json():
overpasses = response.json()['overpasses']
return overpasses
......@@ -501,7 +501,7 @@ class Station(ThreadedModule):
response = requests.get(config.endpoint_scheduler,
auth=(self.owner.username,
self.owner.password),
data=data)
data=data, verify = False)
if response.status_code == 200:
schedules = response.json()['schedules']
schedules.extend(
......
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