This commit is contained in:
xyj 2023-12-26 17:50:01 +08:00
parent cc970c891c
commit e82d7d17db
1 changed files with 1 additions and 0 deletions

View File

@ -194,6 +194,7 @@ def get_data():
} }
if sun_data < 6: if sun_data < 6:
subprocess.Popen(['sudo python /home/pi/lot_manager/close_led.py'], shell=True) 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: else:
subprocess.Popen(['sudo python /home/pi/lot_manager/open_led.py'], shell=True) subprocess.Popen(['sudo python /home/pi/lot_manager/open_led.py'], shell=True)
t2 = LOT_DATA(**data) t2 = LOT_DATA(**data)