sondehub-infra/lambda/query_ham/__main__.py
2022-02-27 10:55:34 +11:00

18 lines
402 B
Python

from . import *
import base64
import zlib
response = get_telem(
{
"queryStringParameters":{
"payload_callsign": "HORUS-V2",
"duration": "3d"
}
}, {})
compressed = base64.b64decode(response['body'])
decompressed = (zlib.decompress(compressed, 16 + zlib.MAX_WBITS))
print(json.loads(decompressed)
)
print(len(json.dumps(response)))