thanks for the info..
i'll try to do it more "from scratch" for someone who is not so familiar with linux and commands in general, combining all the previous comments:
- install putty if you are in windows and this will let you enter the files inside raspberry pi
- at tab session and Host Name field add octopi.local or your raspberry ip (you can find this in your router's page 192.168.1.1..and it will be something like 192.168.1.X), choose SSH, port 22, Open
- username is default "pi", and password "raspberry"
- you have to go to folder mjpg-streamer, so you enter the command
- now enter
sudo v4l2-ctl --set-ctrl=focus_auto=0 to disable auto focus
- open a window with your octoprint camera and fine tune the focus..
sudo v4l2-ctl --set-ctrl=focus_absolute=70 and change the number until the focus is ok
- now, you have your two commands that fine tune your camera. In order to run them every time raspberry open, you have to add them to rc.local file:
sudo vi /etc/rc.local, then go to line last line "exit 0"
b) press shift+O and write your two commands (you can copy and paste with left click)..
if you mess up something press esc and :q! to quit
if you are fine press esc and :wq to save
something like this:
some extra info:
if you set focus_auto to 1 and let the webcam focus an object in the center you can take the "perfect" focus value..and then focus_auto to 0..but which is this value?
you run the command
sudo v4l2-ctl -l and you will see:
"focus_absolute (int) : min=0 max=250 step=5 default=8189 value=50"
so your "perfect" value is 50..
you can play with the other listed settings also..(like contrast with
sudo v4l2-ctl --set-ctrl=contrast=200)
if you want to check that your changes are permanent, do a restart and see the current values with
sudo v4l2-ctl -l