|
|
@@ -20,6 +20,7 @@ my_client = pymongo.MongoClient(host="8.136.98.49", port=27017, username="root",
|
|
|
my_col = my_client['smartfarming']['sa_device']
|
|
|
|
|
|
scd_device = {
|
|
|
+ "865328061465380",
|
|
|
"865328061478136",
|
|
|
"865328061471529",
|
|
|
"865328061466933",
|
|
|
@@ -52,8 +53,8 @@ def dsj_qxz_conf_info():
|
|
|
|
|
|
for d_id in scd_device:
|
|
|
device = collection.find_one({"device_id": d_id}, {"id": 1, "_id": 0})
|
|
|
- start = "2023-10-22 13:23:05"
|
|
|
- end = "2023-12-06 14:43:00"
|
|
|
+ start = "2023-12-06 15:34:02"
|
|
|
+ end = "2023-12-08 15:19:01"
|
|
|
start = int(datetime.datetime.strptime(start, "%Y-%m-%d %H:%M:%S").timestamp())
|
|
|
end = int(datetime.datetime.strptime(end, "%Y-%m-%d %H:%M:%S").timestamp())
|
|
|
data = {'device_id': device.get("id"), 'addtime':{'$gt':start, "$lt": end}}
|