- Go to the Cameras section at https://connect.prusa3d.com
- Add a new camera.
- Click the QR code link
- Click "Start Camera"
- Open your browser's inspector window and look for the "/snapshot" request.
- Copy the "Fingerprint" and "Token" headers into the file below.
- Save
prusaconnect_upload_cam.shfrom below to/usr/local/bin/prusaconnect_upload_cam.shand make it executablechmod +x /usr/local/bin/prusaconnect_upload_cam.sh.
To run in the background, create /etc/systemd/system/prusaconnect_upload_cam.service and then start and enable it: systemctl enable --now prusaconnect_upload_cam.service.
I tried to get this working with my Logitech USB webcam (already installed on printer), but libcamera-jpeg could not detect it. As a workaround, I use
fswebcamwhich can be installed viasudo apt install -y fswebcam.Just replace line 15 in the script above:
This also on a x86 linux (e.g. LXC on Proxmox)