This commit is contained in:
xyj 2023-12-28 16:55:34 +08:00
parent de7f10bb0e
commit 7db6f63009
2 changed files with 0 additions and 8 deletions

View File

@ -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

View File

@ -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)