This commit is contained in:
xyj 2023-12-26 17:57:17 +08:00
parent e82d7d17db
commit 8d45809094
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ def get_data():
'wind_direction': winddirection_data, 'wind_direction': winddirection_data,
'create_time': int(time.time()) 'create_time': int(time.time())
} }
if sun_data < 6: if sun_data < 2000:
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) subprocess.Popen(['/bin/bash /home/pi/lot_manager/bash/stop_push_stream.sh'],shell=True)
else: else: