Closed cjkrolak closed 10 months ago
file: ~/.config/autostart/lxterm-autostart.desktop ref: https://forums.raspberrypi.com/viewtopic.php?t=66206
code before update:
[Desktop Entry]
Encoding=UTF-8
Name=SHT31 server autostart
Comment=Start a terminal and launch sht31 server
Exec=/usr/bin/lxterm -hold -e 'cd /home/pi/github/ThermostatSupervisor && python -m thermostatsupervisor.sht31_flask_server'
Terminal=true
X-KeepTerminal=true
code after update:
[Desktop Entry]
Encoding=UTF-8
Name=SHT31 server autostart
Comment=Start a terminal pull latest dev branch and launch sht31 server
Exec=/usr/bin/lxterm -hold -e 'cd /home/pi/github/ThermostatSupervisor && git checkout develop && git pull && pip install -r requirements.txt && python -m thermostatsupervisor.sht31_flask_server'
Terminal=true
X-KeepTerminal=true
confirmed working OK on 12/10/23
startup script added in #600
enhance script to pull latest develop branch
current script:
new script: