I use a cheap Tapo C100 webcam to monitor my 3D prints. It supports RTSP.
- 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 docker-compose below.
I have noticed that, when trying to use a webcam attached to my laptop, that the camera registration doesn't work. If you open the developer tools, you will see that it is in a loop, failing to get the token from the scanned QR. I can never get the screen to scan a QR.
what the js code wants to do is get the token from the scanned QR and call the function "setToken". so, you can get yourself unstuck by copying the token text into the copy/paste buffer, clicking the link to show the webcam, going into the developer tools->console, and executing
**setToken("token-in-your-copy-paste-buffer")**
, after that, you can open the developer tools->network and see the snapshot request and look at the headers to retrieve the Fingerprint header.