You can rotate the webcam feed directly on the RasPi that Octoprint runs on, so there is no need to rotate/transform lovelace cards. However, this only works for the Raspberry Pi camera module and not external USB cameras.
- SSH into the RasPi of Octoprint, e.g.
ssh [email protected]
- Open the file /boot/octopi.txt, e.g.
sudo nano /boot/octopi.txt
- Add the following lines, it doesn’t matter where exactly:
camera="raspi"
camera_raspi_options="-rot 90" # or 180, 270..
- Exit and save the file, then reboot the RasPi
When using the plugin TheSpaghettiDetective, the file octopi.txt is skipped, so it has to be disabled/deactivated for this approach to work. It is also possible to change similar setting in TheSpaghettiDetective as well when using compatibility mode.
The documentation and additional configurable parameters can be found here:
Hope this helps!