fix imets

This commit is contained in:
Michaela 2021-04-28 07:51:54 +10:00
parent 00fddada46
commit 3fd74d61a7

View File

@ -281,7 +281,7 @@ def datanew(event, context):
} }
}, },
], ],
"must_not": [{"match_phrase": {"software_name": "SondehubV1"}}], "must_not": [{"match_phrase": {"software_name": "SondehubV1"}}, {"match_phrase": {"serial": "xxxxxxxx"}}],
} }
}, },
} }
@ -370,7 +370,7 @@ def datanew(event, context):
"gps_heading": frame_data["heading"] "gps_heading": frame_data["heading"]
if "heading" in frame_data if "heading" in frame_data
else "", else "",
"gps_speed": frame_data["vel_h"], "gps_speed": frame_data["vel_h"] if "vel_h" in frame_data else "",
"type": _type, "type": _type,
"picture": "", "picture": "",
"temp_inside": "", "temp_inside": "",
@ -604,8 +604,10 @@ if __name__ == "__main__":
datanew( datanew(
{ {
"queryStringParameters": { "queryStringParameters": {
"mode": "single", "vehicles": "55067220",
"position_id": "912-2-12555-2021-04-20T06:47:59.000000Z" "type": "positions",
"mode": "1day",
"position_id": "0"
} }
}, },
{}, {},