EbenKouao / pi-camera-stream-flask

Create your own live camera stream using a Raspberry Pi 4
MIT License
320 stars 126 forks source link

Stoping Flask Server #29

Open SimonSchirber opened 1 year ago

SimonSchirber commented 1 year ago

Is there a way you can stop the server with a button on the GUI to make sure the camera is turned off? I wanted to use this because when I default the pi bootup to run the main.py script i cant find how to turn off/kill the local server main.py script since I cant see the terminal that started it

mikibish commented 1 year ago

No GUI way that I've found but you can kill it through the terminal. Run ps aux | grep python to find the PID number of main.py and then run kill <PID number> or you can try killall python without having to look up the PID but obviously that will stop any and all python scripts you have running.