Skip to content

Instantly share code, notes, and snippets.

@mscalora
Last active May 24, 2025 14:16
Show Gist options
  • Save mscalora/6c4730e124b1aa9d842496c60a487ef8 to your computer and use it in GitHub Desktop.
Save mscalora/6c4730e124b1aa9d842496c60a487ef8 to your computer and use it in GitHub Desktop.
This set of scripts/files is used to link blink cameras to PrusaConnect.

This set of scripts/files is used to link blink cameras to PrusaConnect.

This is rough, you need a working knowledge of python, requirements.txt, venv to use.

The cron job has worked reliably for me for several years.

Generating the blink.creds file is an exercise left to the reader, study the blinkpy documentation.

aiohttp~=3.9.1
blinkpy~=0.22.6
#!/bin/bash
# this is what I actually run with cron, it does the venv init
# dir of script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )";
# parent dir of that dir
#PARENT_DIRECTORY="${DIR%/*}"
PARENT_DIRECTORY="$DIR"
source "$PARENT_DIRECTORY/venv/bin/activate"
cd "$PARENT_DIRECTORY"
python3 "$PARENT_DIRECTORY/upload-blink-to-prusa-connect.py"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment