mirror of
https://github.com/projecthorus/sondehub-infra.git
synced 2025-01-31 07:55:24 +00:00
fix imets
This commit is contained in:
parent
00fddada46
commit
3fd74d61a7
@ -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"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user