micha 3 سال پیش
والد
کامیت
4c7c6a10f9
3فایلهای تغییر یافته به همراه5 افزوده شده و 10 حذف شده
  1. 1 1
      ArtNetProcessor.py
  2. 2 2
      setup_IN.sh
  3. 2 7
      start_ASP.sh

+ 1 - 1
ArtNetProcessor.py

@@ -35,7 +35,7 @@ if "__file__" in dir():
     if "/" in fn:
         fn = fn.split("/")[-1]
 
-    sys.stdout.write("\x1b]2;"+str(fn)+"\x07") # terminal title
+    sys.stdout.write("\x1b]2;"+str(fn)+" Beta 22.01"+"\x07") # terminal title
 else:
     sys.stdout.write("\x1b]2;"+str("__file__")+"\x07") # terminal title
 

+ 2 - 2
setup_IN.sh

@@ -1,4 +1,4 @@
 #!/usr/bin/bash
 
-sudo sh /home/pi/ASP/netns.sh 24 
-sudo ip netns exec blue224 su pi -c 'screen -d -m -S ASP_IN sh /home/pi/ASP/map14_in_to0.sh'
+sudo sh /opt/LibreLight/ASP/netns.sh 24 
+sudo ip netns exec blue224 su user -c 'screen -d -m -S ASP_IN sh /opt/LibreLight/ASP/map14_in_to0.sh'

+ 2 - 7
start_ASP.sh

@@ -1,11 +1,6 @@
 echo "sleep 5"
 #sleep 5
+path="/opt/LibreLight"
 netns=$(ip netns identify $$)
 
-
-python3 /home/pi/ASP/ArtNetProcessor.py --recive 10. --sendto 2.255.255.255 netns=$netns
-if [ $? != 0 ]; then
-     python3 /home/user/ASP/ArtNetProcessor.py --recive 10. --sendto 2.255.255.255 netns=$netns
-     #python3 /home/micha/ASP/ArtNetProcessor.py --recive 10. --sendto 2.255.255.255 netns=$netns
-  
-fi
+python3 $path/ASP/ArtNetProcessor.py --recive 10. --sendto 2.255.255.255 netns=$netns