mirror of
https://github.com/projecthorus/sondehub-infra.git
synced 2024-12-26 00:01:11 +00:00
24 lines
639 B
Python
24 lines
639 B
Python
from . import *
|
|
import base64
|
|
|
|
import zlib
|
|
|
|
response = get_telem(
|
|
{
|
|
"pathParameters": {
|
|
|
|
},
|
|
"queryStringParameters":{
|
|
"payload_callsign" : "NOB14,VE6AGD-11",
|
|
"last": "10800",
|
|
"datetime": "2022-06-26T08:30:00.000001Z",
|
|
"format": "kml"
|
|
}
|
|
}, {})
|
|
print(len(response['body']))
|
|
compressed = base64.b64decode(response['body'])
|
|
|
|
decompressed = (zlib.decompress(compressed, 16 + zlib.MAX_WBITS))
|
|
#print(json.loads(decompressed))
|
|
#print(decompressed.decode().splitlines()[:5])
|
|
print(decompressed.decode()) |