when i want to change the octoprin webcam zoom , i login with ssh and change de zoom with this comand
v4l2-ctl -c zoom_absolute=1 , can be 1 to 5
i have included in the
/root/bin/webcamd
my default configuration
haha, cool, didn't even know my cam could do this, but it works!
I have implemented 2 buttons to zoom to 1x and 2x with the plugin "GCODE System Commands" using this Howto: How to send remote commands to second Pi from OctoPrint
Since you have no need for remote login, you can ignore the first part of the Howto. Just define 2 Command Definitions in the plugin like 'sudo v4l2-ctl -c zoom_absolute=1' with 2 different numbers and edit the 'config.yaml' file accordingly:
yep, found v4l2-ctl --all, but that's equivalent, I suppose
For my camera, a Logitech C525, only zoom to 1x and 2x works, if I try 3x ... 5x nothing happens. This seems to be depending on the features of the actual camera, right?
With my Raspi-Cam e.g. the line for zoom isn't even shown with v4l2-ctl --all, so obviously this camera cannot zoom at all.
The keygen part of that tutorial though was necessary so that the pi user can do password-less sudo (even if remotely). In order for OctoPrint to be able to do password-less sudo for that v4l2-ctl command you'll need to create a file in the /etc/sudoers.d folder similar to the technique talked about here.
I "copy&past"ed the code right out of my config.yaml file, so it should be ok.
I am working in a linux-only environment. Do you have Windows? How have you edited the config.yaml file? I don't know how robust the config.yaml file is regarding white space, blank lines and Windows line-end vs. Linux line-end handling...
Not sure what to tell you since this technique works on mine, nicely making the custom buttons go horizontally across the page with a 10px padding between them.
You mean here in control.jinja2? So in theory, something above this level has a key/arg pair of something like layout: horizontal. You would think that this would be the ViewModel for Control. Which takes us to here in the docs for custom controls.
Wow. I got it to work (without Themeify this time).