mirror of
https://github.com/projecthorus/sondehub-infra.git
synced 2025-01-23 20:57:58 +00:00
18 lines
402 B
Python
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))) |