It's actually just the wiki note that this guide is that needs some updating
Sure:
wget https://raw.githubusercontent.com/OctoPrint/OctoPrint/master/scripts/octoprint.service && sudo mv octoprint.service /etc/systemd/system/
wget https://github.com/foosel/OctoPrint/raw/master/scripts/octoprint.default && sudo mv octoprint.default /etc/default/octoprint
sudo systemctl enable octoprint.service --now
That's what I did on mine.
I'm having an issue with this section. I want to use a picam but this does not build the input_raspicam.so file that is needed. Any ideas what the problem is? I also opened an issue on the github page for this project.
EDIT: It was a problem with 64bit pi OS. The pi camera is not completely working yet on it.
Just a note, the webcamDaemon script will never use the "input_raspicam.so" for a pi camera with the default camera setting of "auto" (so auto really just means to use input_uvc.so for everything.). Because the if statement at the bottom looks for /dev/video0 first which the pi camera also uses.
I'm not sure if it is better or worse to use input_raspicam.so for a pi camera over input_uvc.so so maybe it doesn't matter.
EDIT: mjpeg_streamer uses a lot less CPU when using input_uvc.so vs more CPU when using input_raspicam.so so I guess it is fine how it is.
Here is a very simple systemd service file to use instead of adding the webcam stuff to the rc.local, which is messy. It uses the scripts above as well, because why not:
/etc/systemd/system/mjpg-streamer.service
[Unit]
Description=mjgp-streamer webcam streaming daemon
After=network-online.target
Wants=network-online.target
[Service]
Type=forking
User=pi
ExecStart=/home/pi/scripts/webcam start
ExecStop=/home/pi/scripts/webcam stop
[Install]
WantedBy=multi-user.target
Hello everyone
I do not know English,These texts are all translated by Google,Hope you can understand
The problem I have is Raspberry 4B Webcam Do not show and After a while ssh connection error
OctoPi no problem
大家好
我不会英文,这些文字都是谷歌翻译得到的
我遇到的问题是Raspberry4B 摄像头不显示 一段时间后ssh连接中断显示Access denied(不确定是什么的问题)
OctoPi没有问题,显示连接都是可以的
MJPG Streamer Version: git rev: 85f89a8c321e799fabb1693c5d133f3fb48ee748
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: -1
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
i: Could not obtain the requested pixelformat: MJPG , driver gave us: YUYV
[...]
o: www-folder-path......: disabled
o: HTTP TCP port........: 8080
o: HTTP Listen Address..: (null)
o: username:password....: disabled
o: commands.............: enabled
Hi,
i have a problem with the webcam.i use the guide from here, but my camera will not start. I also read all posts here. no result.
User pi, Bananapi A20, Image Armbian (debian10), Video device ist /dev/video1
i have a webcam and a WebcamDaemon (green) in ./scripts
/boot/octoprint.txt.
if i enter the mjpg_streamer by hand it will work. I think i have a problem with the autostart of mjpg_streamer.
Can anybody help?
And what do you want me to show you?
Regards
Alero
Did you change the pi related stuff to your username / directories ?
Are the scripts executable (chmod +x)?
Did you put them into /etc/rc.local
as the guide said?
Hi,
Yes both. and my user is pi
Regards
Alero
Hi, i think my problem is that mjpg_streamer should start at boot.
Regards
Alero
hi,
when i start me a20 i see that webcam ist started.
if i enter
./mjpg_streamer -i "./input_uvc.so -d /dev/video1 -r 1920x1080 -f 15" -o "./output_http.so"
my camera works fine. but it dosn´t start after reboot.
no idea what i can do?
Regards
Alero
Sry I was quite busy today. I'll try to look at it tomorrow.
Hey it's going to be another day or two.. It's too hot for me right now. Can't think straight
Hi,
No problem.
Thanks 4 your help.
Regards
Alero
hi,
do you need some Files or other details?
regards
Alero
hi, nobody here who can help?
Regards
Alero63
I made it
thank
No Ideas?
Need Help.
Regards Alero
good evening ... excellent guide, perfect even for beginners
I have a problem, I can't find the octopi.txt file, it looks like it hasn't been installed and if I download one from github, it doesn't let me save it in the root folder
As its name implies, the octopi.txt
file is OctoPi specific. If you don't use OctoPi (and if you are using this guide you probably aren't or you wouldn't be using the guide) you won't have it.
I need some help/direction pointing...
OctoPrint 1.4.2 on Raspberry Pi 4, fully updated\upgraded
fresh install of Octo everything Octo-wise works fine, but when attempting to get the Raspberry Pi Cam to auto start, I get notta!
I can manually start the cam, and it works as expected, just not as a daemon
followed the instructions here to a TEE..
I created a directory </home/pi/scripts> as it didn't exist, I then created to blank files, an cut\paste the corresponding contents from this page in to the files "webcam" & " webcamDaemon", I also applied executable permissions. and Finely edited the rc.local file as instructed as well!
I get no love!
this is the working manual command I can use...
<./mjpg_streamer -i "./input_raspicam.so -vs -x 1280 -y 720 -fps 32" -o "./output_http.so" >
as a side note, I have looked all over attempting to use all kinds of different configurations