https://www.youtube.com/watch?v=LlPHrdXHBTU
ssh pi@192.168.x.x
mkdir a
cd a
pwd
git clone https://github.com/ThomasMoellerR/MQTT_Thermostat.git
git clone https://github.com/eclipse/paho.mqtt.python
cd paho.mqtt.python
sudo python3 setup.py install
cd ..
sudo apt-get install tmux
crontab -e
@reboot /bin/bash /home/pi/a/MQTT_Thermostat/tmux.sh
sudo chmod +x /home/pi/a/MQTT_Thermostat/tmux.sh
nano /home/pi/a/MQTT_Thermostat/main.sh
sudo reboot
or
bash /home/pi/MQTT_Thermostat/tmux.sh
with the command "tmux a" you can attach to a running session
tmux a
with the command "ctrl+b" inside the session with a "d" followed you can detach from this session and the programm keeps running
ctrl+b
d