From 7db6f6300923e6442285aa6dbcf768f6194b0407 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Thu, 28 Dec 2023 16:55:34 +0800 Subject: [PATCH] update --- install.sh | 3 --- sensor_to_server.py | 5 ----- 2 files changed, 8 deletions(-) diff --git a/install.sh b/install.sh index 3d3bd1e..85f6416 100644 --- a/install.sh +++ b/install.sh @@ -10,9 +10,6 @@ git config --global user.name xyj git config --global user.email 1090822794@qq.com git config --global credential.helper store -echo "0 8 * * * sudo /usr/bin/python /home/pi/lot_manager/open_led.py" >> sudo crontab - -echo "0 18 * * * sudo /usr/bin/python /home/pi/lot_manager/close_led.py" >> sudo crontab - - cd /home/pi git clone https://gitea.lihaink.cn/xyj/lot_manager.git cd lot_manager diff --git a/sensor_to_server.py b/sensor_to_server.py index 36fb812..3a27c29 100755 --- a/sensor_to_server.py +++ b/sensor_to_server.py @@ -192,11 +192,6 @@ def get_data(): 'wind_direction': winddirection_data, 'create_time': int(time.time()) } - # if sun_data < 2000: - # subprocess.Popen(['sudo python /home/pi/lot_manager/close_led.py'], shell=True) - # subprocess.Popen(['/bin/bash /home/pi/lot_manager/bash/stop_push_stream.sh'],shell=True) - # else: - # subprocess.Popen(['sudo python /home/pi/lot_manager/open_led.py'], shell=True) t2 = LOT_DATA(**data) client.publish(publish_topic, payload=json.dumps(data, ensure_ascii=False), qos=0) add(t2)