paukstelis / octoprint_deploy

Bash script for rapid deployment of multiple octoprint instance on a single machine
MIT License
389 stars 39 forks source link

How to add integrated laptop cam #167

Closed OscarCreator closed 1 month ago

OscarCreator commented 1 month ago

I got octoprint working with this script on my old laptop but couldn't find any way to configure the integrated laptop cam as the webcam. How would I do that?

paukstelis commented 1 month ago

There isn't exactly an "easy" way to do this, because the script requires that you plug the camera in. One possible solution is to plug in some other USB device that has a serial number. Then you can modify either the service file or the udev rules to point to your integrated camera (probably /dev/video0)

EDIT: you might be able to get away with running the script with the picam command line option and then do camera setup. Some of that changed recently, but I think it will still work for what you want.

OscarCreator commented 1 month ago

Okay, thanks for the help. I will try and see if I can get this to work.

OscarCreator commented 1 month ago

Wow, picam and the editing the device to /dev/video0 totally worked! 🥳 Screenshot_20240514-173953~2.png