2022-02-26 23:55:34 +00:00
|
|
|
from . import *
|
|
|
|
import base64
|
|
|
|
|
|
|
|
import zlib
|
|
|
|
|
2022-04-13 02:50:51 +00:00
|
|
|
response = get_telem(
|
2022-02-26 23:55:34 +00:00
|
|
|
{
|
|
|
|
"queryStringParameters":{
|
2022-04-10 05:18:28 +00:00
|
|
|
# "payload_callsign": "HORUS-V2",
|
2022-04-13 02:50:51 +00:00
|
|
|
"duration": "3d"
|
2022-02-26 23:55:34 +00:00
|
|
|
}
|
|
|
|
}, {})
|
2022-04-13 02:50:51 +00:00
|
|
|
|
|
|
|
# response = get_listener_telemetry(
|
|
|
|
# {
|
|
|
|
# "queryStringParameters":{
|
|
|
|
# # "payload_callsign": "HORUS-V2",
|
|
|
|
# "duration": "3h"
|
|
|
|
# }
|
|
|
|
# }, {})
|
2022-02-26 23:55:34 +00:00
|
|
|
compressed = base64.b64decode(response['body'])
|
|
|
|
|
|
|
|
decompressed = (zlib.decompress(compressed, 16 + zlib.MAX_WBITS))
|
|
|
|
print(json.loads(decompressed)
|
|
|
|
)
|
|
|
|
print(len(json.dumps(response)))
|