This commit is contained in:
xyj 2024-01-06 17:06:57 +08:00
parent fd5c5ae56a
commit 5023ef49cc
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
sudo crontab -r
sudo crontab -l > cron.cron 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 echo "0 0 * * * /usr/bin/python /home/pi/lot_manager/delete_lot_data_3_days.py" >> cron.cron
# 64G的才加 # 64G的才加
echo "0 * * * * /usr/bin/bash /home/pi/lot_manager/bash/cron_delete_mp4.sh" >> cron.cron echo "0 * * * * /usr/bin/bash /home/pi/lot_manager/bash/cron_delete_mp4.sh" >> cron.cron

View File

@ -206,7 +206,7 @@ def get_data():
def p(): def p():
while True: while True:
time.sleep(54) time.sleep(10)
try: try:
data = {'ambient_temperature': 1, data = {'ambient_temperature': 1,
'ambient_humidity': 1, 'ambient_humidity': 1,