diff --git a/sensor_to_server.py b/sensor_to_server.py index db947f9..bd7e831 100755 --- a/sensor_to_server.py +++ b/sensor_to_server.py @@ -194,6 +194,7 @@ def get_data(): } if sun_data < 6: 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)