update
This commit is contained in:
parent
c1bf65f9d3
commit
3ab0ddc2db
2
MQTT.py
2
MQTT.py
|
@ -56,7 +56,7 @@ class MQTTClient:
|
||||||
# git更新项目和配置文件
|
# git更新项目和配置文件
|
||||||
update(client)
|
update(client)
|
||||||
elif data == "reload":
|
elif data == "reload":
|
||||||
# git更新项目和配置文件
|
# 重启配置
|
||||||
reload(client)
|
reload(client)
|
||||||
elif data == "record_list":
|
elif data == "record_list":
|
||||||
# 查看录像列表
|
# 查看录像列表
|
||||||
|
|
2
tool.py
2
tool.py
|
@ -68,8 +68,8 @@ def update(client):
|
||||||
|
|
||||||
|
|
||||||
def reload(client):
|
def reload(client):
|
||||||
subprocess.Popen(['supervisorctl reload'], shell=True)
|
|
||||||
client.publish('success', payload="reloading", qos=0)
|
client.publish('success', payload="reloading", qos=0)
|
||||||
|
subprocess.Popen(['supervisorctl reload'], shell=True)
|
||||||
|
|
||||||
|
|
||||||
def get_list_record():
|
def get_list_record():
|
||||||
|
|
Loading…
Reference in New Issue