Skip to content

PIHTI Vacuum Flask ServerΒΆ

Access the DiagramΒΆ

Open Web Interface (Local Net)

queezz/pihtivacuum


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ΒΆ

  1. Show running processes:
ps
  1. Find the corresponding Python process ID (PID).
  2. 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.