From 790638f4d8be5caff98f4c5e3fb1c6da4d38c4f5 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Sat, 3 Feb 2024 18:05:40 +0800 Subject: [PATCH] rfid_last_data_query --- config.py | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/config.py b/config.py index a3f5e8a..c805644 100644 --- a/config.py +++ b/config.py @@ -39,29 +39,6 @@ headers = { 'Authorization': "Basic " + token } -# example -# RFID -send1 = { - "m": ["cid", "r", "v"], - "v": ["abcd", "rfid", 10.62], - "t": 0, - "l": 63 -} -# 空气 -send2 = { - "m": ["cid", "at", "ah"], - "v": ["test2", 10.62, 50.22], - "t": 1, - "l": 65 -} -# 普通 -send3 = { - "m": ["cid", "v"], - "v": ["test1", 10.62], - "t": 2, - "l": 50 -} - def RFID_template(type, deviceId): return [ @@ -139,3 +116,27 @@ def get_client_change_status_sql(timestamp, status): # 监控视频接口 def get_video_url(username): return f"http://rtsp.lihaink.cn/live/xumu_{username}.live.mp4" + + +# example +# RFID +send1 = { + "m": ["cid", "r", "v"], + "v": ["abcd", "rfid", 10.62], + "t": 0, + "l": 63 +} +# 空气 +send2 = { + "m": ["cid", "at", "ah"], + "v": ["test2", 10.62, 50.22], + "t": 1, + "l": 65 +} +# 普通 +send3 = { + "m": ["cid", "v"], + "v": ["test1", 10.62], + "t": 2, + "l": 50 +}