mirror of
https://github.com/projecthorus/sondehub-infra.git
synced 2025-04-10 04:19:56 +00:00
fix for latln in aprs
This commit is contained in:
parent
c619b9b296
commit
2a56b3810a
@ -13,10 +13,13 @@ def lambda_handler(event, context):
|
||||
incoming_payloads = json.loads(sns_message["Message"])
|
||||
for payload in incoming_payloads:
|
||||
index = payload['datetime'][:7]
|
||||
|
||||
try:
|
||||
payload['position'] = f'{payload["lat"]},{payload["lon"]}' # make elk happy location
|
||||
except:
|
||||
pass
|
||||
if index not in payloads: # create index if not exists
|
||||
payloads[index] = []
|
||||
|
||||
|
||||
payloads[index].append(payload)
|
||||
|
||||
for index in payloads:
|
||||
|
Loading…
x
Reference in New Issue
Block a user