2022-02-26 23:55:34 +00:00
|
|
|
from . import *
|
|
|
|
import base64
|
|
|
|
|
|
|
|
import zlib
|
|
|
|
|
2023-07-11 23:59:43 +00:00
|
|
|
response = get_telem_full(
|
2022-02-26 23:55:34 +00:00
|
|
|
{
|
2022-05-11 03:34:57 +00:00
|
|
|
"pathParameters": {
|
2023-07-11 23:59:43 +00:00
|
|
|
"payload_callsign": "PD3EGE"
|
2022-05-11 03:34:57 +00:00
|
|
|
},
|
2022-02-26 23:55:34 +00:00
|
|
|
"queryStringParameters":{
|
2023-03-25 22:54:46 +00:00
|
|
|
# "payload_callsign" : "NOB14,VE6AGD-11",
|
2023-07-11 23:59:43 +00:00
|
|
|
"last": "22269",
|
|
|
|
"datetime": "1688655220.471",
|
2023-03-25 22:54:46 +00:00
|
|
|
# "format": "kml"
|
2023-07-11 23:59:43 +00:00
|
|
|
#"duration": "732d"
|
2022-02-26 23:55:34 +00:00
|
|
|
}
|
|
|
|
}, {})
|
2022-05-11 03:34:57 +00:00
|
|
|
print(len(response['body']))
|
2022-02-26 23:55:34 +00:00
|
|
|
compressed = base64.b64decode(response['body'])
|
|
|
|
|
|
|
|
decompressed = (zlib.decompress(compressed, 16 + zlib.MAX_WBITS))
|
2022-05-11 03:34:57 +00:00
|
|
|
#print(json.loads(decompressed))
|
2022-07-02 07:06:13 +00:00
|
|
|
#print(decompressed.decode().splitlines()[:5])
|
|
|
|
print(decompressed.decode())
|