rfid_last_data_query

This commit is contained in:
xyj 2024-02-03 18:05:40 +08:00
parent f1730d6176
commit 790638f4d8
1 changed files with 24 additions and 23 deletions

View File

@ -39,29 +39,6 @@ headers = {
'Authorization': "Basic " + token '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): def RFID_template(type, deviceId):
return [ return [
@ -139,3 +116,27 @@ def get_client_change_status_sql(timestamp, status):
# 监控视频接口 # 监控视频接口
def get_video_url(username): def get_video_url(username):
return f"http://rtsp.lihaink.cn/live/xumu_{username}.live.mp4" 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
}