update
This commit is contained in:
parent
7538d99a24
commit
fd5c5ae56a
|
@ -196,9 +196,9 @@ def get_data():
|
||||||
client.publish(publish_topic, payload=json.dumps(data, ensure_ascii=False), qos=0)
|
client.publish(publish_topic, payload=json.dumps(data, ensure_ascii=False), qos=0)
|
||||||
add(t2)
|
add(t2)
|
||||||
# 运行一次就把这个程序关掉
|
# 运行一次就把这个程序关掉
|
||||||
# subprocess.Popen(
|
subprocess.Popen(
|
||||||
# ["/usr/bin/bash /home/pi/lot_manager/conf/example/bash/stop_dataupload_internal_one_hour.sh"],
|
["/usr/bin/bash /home/pi/lot_manager/conf/example/bash/stop_dataupload_internal_one_hour.sh"],
|
||||||
# shell=True)
|
shell=True)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# print(e)
|
# print(e)
|
||||||
pass
|
pass
|
||||||
|
@ -229,9 +229,9 @@ def p():
|
||||||
client.publish(publish_topic, payload=json.dumps(data, ensure_ascii=False), qos=0)
|
client.publish(publish_topic, payload=json.dumps(data, ensure_ascii=False), qos=0)
|
||||||
add(t2)
|
add(t2)
|
||||||
# 运行一次就把这个程序关掉
|
# 运行一次就把这个程序关掉
|
||||||
# subprocess.Popen(
|
subprocess.Popen(
|
||||||
# ["/usr/bin/bash /home/pi/lot_manager/conf/example/bash/stop_dataupload_internal_one_hour.sh"],
|
["/usr/bin/bash /home/pi/lot_manager/conf/example/bash/stop_dataupload_internal_one_hour.sh"],
|
||||||
# shell=True)
|
shell=True)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# print(e)
|
# print(e)
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue