From 0f4c916f7819a35b777455118a0d5df9ce1500ae Mon Sep 17 00:00:00 2001
From: Stefan Haun <tux@netz39.de>
Date: Sun, 3 Nov 2024 00:09:46 +0100
Subject: [PATCH 1/2] Start tmux detached because there is no Term in CRON

---
 files/wittgenstein/reboot.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/files/wittgenstein/reboot.sh b/files/wittgenstein/reboot.sh
index e463089..f6b5621 100755
--- a/files/wittgenstein/reboot.sh
+++ b/files/wittgenstein/reboot.sh
@@ -13,7 +13,7 @@ sleep 30
 
 cd /home/pi
 echo 'start ampel controller'
-tmux new-session -s ampel 'cd /home/pi/netz39_space_notification/raspberry/ledcontrol && ./ledcontrol'
+tmux new-session -s ampel -d 'cd /home/pi/netz39_space_notification/raspberry/ledcontrol && ./ledcontrol'
 
 echo 'start lever controller'
 tmux new-window -t ampel:1 'cd /home/pi/netz39_space_notification/raspberry/statusswitch && ./statusswitch'

From 032c1f067e8305277e0f59078e8fc70c40a9e2e1 Mon Sep 17 00:00:00 2001
From: Stefan Haun <tux@netz39.de>
Date: Sun, 3 Nov 2024 00:10:52 +0100
Subject: [PATCH 2/2] Remove obsolete call for spaceAPI handling

---
 files/wittgenstein/reboot.sh | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/files/wittgenstein/reboot.sh b/files/wittgenstein/reboot.sh
index f6b5621..de29b05 100755
--- a/files/wittgenstein/reboot.sh
+++ b/files/wittgenstein/reboot.sh
@@ -17,6 +17,3 @@ tmux new-session -s ampel -d 'cd /home/pi/netz39_space_notification/raspberry/le
 
 echo 'start lever controller'
 tmux new-window -t ampel:1 'cd /home/pi/netz39_space_notification/raspberry/statusswitch && ./statusswitch'
-
-#echo 'start spaceapi controller'
-#tmux new-window -t ampel:2 'cd /home/pi/netz39_space_notification/SpaceAPI && ./update-json.py --server=platon'