How to Control your Raspberry Pi Camera using a web UI

Thanks for the write-up. Ran into the following issue when I got to running the "python app.py" command:

[0:06:47.640160969] [1172] INFO Camera camera.cpp:1033 configuring streams: (0) 640x480-XBGR8888 (1) 4056x3040-SBGGR12_CSI2P
[0:06:47.643284952] [1173] INFO RPI vc4.cpp:565 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 4056x3040-SBGGR12_1X12 - Selected unicam format: 4056x3040-pBCC
Traceback (most recent call last):
File "/home/rpasto2/picamera2-WebUI-Lite-main/app.py", line 44, in <module>
video_config = picam2.create_video_configuration(main={'size':resolution}, sensor={'output_size': mode['size'], 'bit_depth': mode['bit_depth']})
TypeError: create_video_configuration() got an unexpected keyword argument 'sensor'

I'm able to run "libcamera-hello -t 0" so I know the camera is there and working. Not sure where the WebUI Lite may be going wrong. I running this on a Raspberry Pi Zero W v1. I know WebUI Lite is untested on v1 so may not be supported. Any help would be appreciated.
 
Thanks for the write-up. Ran into the following issue when I got to running the "python app.py" command:

[0:06:47.640160969] [1172] INFO Camera camera.cpp:1033 configuring streams: (0) 640x480-XBGR8888 (1) 4056x3040-SBGGR12_CSI2P
[0:06:47.643284952] [1173] INFO RPI vc4.cpp:565 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 4056x3040-SBGGR12_1X12 - Selected unicam format: 4056x3040-pBCC
Traceback (most recent call last):
File "/home/rpasto2/picamera2-WebUI-Lite-main/app.py", line 44, in <module>
video_config = picam2.create_video_configuration(main={'size':resolution}, sensor={'output_size': mode['size'], 'bit_depth': mode['bit_depth']})
TypeError: create_video_configuration() got an unexpected keyword argument 'sensor'

I'm able to run "libcamera-hello -t 0" so I know the camera is there and working. Not sure where the WebUI Lite may be going wrong. I running this on a Raspberry Pi Zero W v1. I know WebUI Lite is untested on v1 so may not be supported. Any help would be appreciated.
Looks like it's due to outdated OS (running on Bullseye).

https://github.com/monkeymademe/picamera2-WebUI-Lite/issues/15
 
Thank you for this, is there any way to get this service to start on boot? (instructions for a noob please)
Currently, I have to ssh in to run the start command but it stops the second I disconnect Putty.
I'm running this headless as a 3D printer camera.

Thank you!