1 / 7
UniFi Protect G3 Instant mount for Prusa MK4 — image 1
1 / 7

UniFi Protect G3 Instant mount for Prusa MK4

Order a print of this model

We calculate the final price from your selected file. You review and accept it before payment.

Saved on this device.

3 part mount to attach UniFi G3 Instant camera to the frame of your Prusa MK4 printer.

Rating
0 / 5
Likes
4
Downloads
24
Makes
0
Views
474
Reviews
0

Updated at source:

Model information

License
Creative Commons — Attribution

OnShape project - https://cad.onshape.com/documents/7ca4a2cedd0166110213dc38/w/2735e1ed24d69d217bf57c18/e/c62c91193d2c7f199bf17cbd. 

The bracket bolts onto the right rear frame extrusion, allowing the arm and camera mount plate to be connected to the frame. You can then attach the G3 Instant camera circular mount onto the camera mount plate.

Since the G3 Instant camera is not intended to be used for close-up macro use, you may want to disassemble it (use a spudger to split the two molded case halves apart), and manually change the focus of the lens. A guide can be found at https://www.reddit.com/r/Ubiquiti/comments/otcsxt/manual_focus_for_g3_instant_completed_with/ and https://imgur.com/a/PJYjIkL.

You can then use the following shell script to upload images directly from your UniFi Protect camera (via RTSP – refer to the UniFi Protect documentation) to PrusaConnect:

#!/usr/bin/env bash

set -Eeuo pipefail shopt -s extdebug

shellcheck disable=SC2154

trap 'declare rc=$?; >&2 echo "Unexpected error (exit-code $rc) executing $BASH_COMMAND at ${BASH_SOURCE[0]} line $LINENO"; exit $rc' ERR

main () {

Enable RTSP streaming for your UniFi Protect camera and paste the URL here.

declare rtsp_stream="rtsps://10.10.10.10:7441/AbCdEfGh12345678?enableSrtp" declare token="YOUR_PRUSACONNECT_CAMERA_TOKEN_HERE"

Generate a new fingerprint with 'uuidgen'.

declare fingerprint="YOUR_ARBITARY_PRUSACONNECT_CAMERA_FINGERPRINT_STRING_HERE" declare printer_uuid="YOUR_PRUSACONNECT_PRINTER_UUID_HERE"

while sleep 10 do if ffmpeg
-y
-loglevel quiet
-rtsp_transport udp
-i "$rtsp_stream"
-vframes 1
-q:v 1
-f image2pipe -
| curl https://webcam.connect.prusa3d.com/c/snapshot
-X PUT
-H "Content-Type: image/jpg"
-H "fingerprint: $fingerprint"
-H "token: $token"
--data-binary @- then printf "." else printf "?" fi done }

main "$@"

Refer to the following links for additional documentation pertaining to the operation of the script above:

Tags