Gast
#4452347
Hallo, Ich habe mir mit einem Raspberry Pi einen Octoprint Host eingerichtet. Octoprint läuft selbst auch mit Autostart. Jedoch benötigt Octoprint den start von mjpg-streamer um auch ein Webcam steam des Printers darzustellen. Ich habe schon versucht: 1. Start über die rc.local datei 2. start über ein script in /etc/init.d/ der einzige weg wie ich es bis jetzt zum laufen bekomme ist wenn ich nach dem hochfahren des Raspberry Pi folgende beiden Komandos eingebe: cd mjpg-streamer ./mjpg_streamer -i "./input_uvc.so -y" -o "./output_http.so -w /www" Hier der Inhalt meiner rc.local: ------------------------------------------------------------------------ - GNU nano 2.2.6 File: /etc/rc.local #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. sudo -u pi /home/pi/bin/octoprint #mjpg-streamer starter echo before-mjpg /home/pi/mjpg-streamer/mjpg_streamer -i "./input_uvc.so -y" -o"./output_http.so -p 8080 -w /www" echo after-mjpg # Print the IP address _IP=$(hostname -I) || true if [ "$_IP" ]; then printf "My IP address is %s\n" "$_IP" fi exit 0 ------------------------------------------------------------------------ Hat jemand eine Vermutung warum es nicht Funktioniert? Ich bin über jede Hilfe sehr dankbar :)