mirror of
https://github.com/projecthorus/sondehub-infra.git
synced 2025-04-15 06:36:44 +00:00
add in long time queries for sondehub amateur
This commit is contained in:
parent
78420870d7
commit
fc5c5834f2
@ -85,6 +85,10 @@ def get(event, context):
|
||||
def get_telem(event, context):
|
||||
|
||||
durations = { # ideally we shouldn't need to predefine these, but it's a shit load of data and we don't need want to overload ES
|
||||
"366d": (31622400, 14000),
|
||||
"186d": (16070400, 3600),
|
||||
"31d": (2678400, 300),
|
||||
"7d": (604800, 120),
|
||||
"3d": (259200, 15),
|
||||
"1d": (86400, 1),
|
||||
"12h": (43200, 1),
|
||||
|
@ -9,10 +9,11 @@ response = get_telem(
|
||||
|
||||
},
|
||||
"queryStringParameters":{
|
||||
"payload_callsign" : "NOB14,VE6AGD-11",
|
||||
"last": "10800",
|
||||
"datetime": "2022-06-26T08:30:00.000001Z",
|
||||
"format": "kml"
|
||||
# "payload_callsign" : "NOB14,VE6AGD-11",
|
||||
# "last": "10800",
|
||||
# "datetime": "2022-06-26T08:30:00.000001Z",
|
||||
# "format": "kml"
|
||||
"duration": "732d"
|
||||
}
|
||||
}, {})
|
||||
print(len(response['body']))
|
||||
|
Loading…
x
Reference in New Issue
Block a user