add in long time queries for sondehub amateur

This commit is contained in:
xss 2023-03-26 08:54:46 +10:00
parent 78420870d7
commit fc5c5834f2
2 changed files with 9 additions and 4 deletions

View File

@ -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),

View File

@ -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']))