Skip to content

Instantly share code, notes, and snippets.

@Dimtree
Dimtree / camera.sh
Created September 21, 2023 12:03
Repeatedly take photos from webcam using ffmpeg and upload them to PrusaConnect
#!/bin/bash
# based on this script by nunofgs
# https://gist.github.com/nunofgs/84861ee453254823be6b069ebbce9ad2
# fingerprint needs to be unique per camera
# it's just a random string, generate one with `uuidgen` or `pwgen 32 1`
# if you lose it, delete and re-add the camera in PrusaConnect then rotate $FINGERPRINT and $TOKEN here
FINGERPRINT=fingerprint-goes-here
# PrusaConnect "other camera" token