From 5023ef49cc5895a35f109578fbf8d9ceae6626e6 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Sat, 6 Jan 2024 17:06:57 +0800 Subject: [PATCH] update --- conf/example/bash/cron_set_for_64G.sh | 3 ++- sensor_to_server.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/conf/example/bash/cron_set_for_64G.sh b/conf/example/bash/cron_set_for_64G.sh index 1b7ebef..8226f89 100755 --- a/conf/example/bash/cron_set_for_64G.sh +++ b/conf/example/bash/cron_set_for_64G.sh @@ -1,6 +1,7 @@ #!/bin/bash +sudo crontab -r sudo crontab -l > cron.cron -echo "0 * * * * /usr/bin/bash /home/pi/lot_manager/conf/example/bash/start_dataupload_internal_one_hour.sh" >> cron.cron +echo "0 * * * * supervisorctl restart data_upload" >> cron.cron echo "0 0 * * * /usr/bin/python /home/pi/lot_manager/delete_lot_data_3_days.py" >> cron.cron # 64G的才加 echo "0 * * * * /usr/bin/bash /home/pi/lot_manager/bash/cron_delete_mp4.sh" >> cron.cron diff --git a/sensor_to_server.py b/sensor_to_server.py index 863edc2..a09dc61 100755 --- a/sensor_to_server.py +++ b/sensor_to_server.py @@ -206,7 +206,7 @@ def get_data(): def p(): while True: - time.sleep(54) + time.sleep(10) try: data = {'ambient_temperature': 1, 'ambient_humidity': 1,