PIHTI Vacuum Flask ServerΒΆ
Access the DiagramΒΆ
Open Web Interface (Local Net)
Video How-ToΒΆ
Starting the ServerΒΆ
If the server is not running, SSH into the Raspberry Pi and start it with:
nohup python ~/pihtivacuum/server.py &
This will run the script in the background. You can disconnect from SSH by pressing Ctrl+D.
Stopping the ServerΒΆ
- Show running processes:
ps
- Find the corresponding Python process ID (PID).
- Kill it:
kill -9 <PID>
Example:
kill -9 20390
Checking if the Server is RunningΒΆ
Using netstatΒΆ
sudo netstat -tuln | grep 5000
Using topΒΆ
top
This starts an activity monitor in the terminal.