This repository has no description
1

Configure Feed

Select the types of activity you want to include in your feed.

at main 709 B View raw
1#!/usr/bin/env bash 2# Send a recording to the running loup webhook. 3# 4# ./demo/send.sh [video] [video_url] [server] 5# 6# Defaults: ~/Downloads/tangled-bugs.mov, the demo YouTube link, localhost:4319. 7# Start the server first in another terminal: npm run serve (or: npx loup serve) 8set -euo pipefail 9 10VIDEO="${1:-$HOME/Downloads/tangled-bugs.mov}" 11VIDEO_URL="${2:-https://youtu.be/nzT_EvvxESo}" 12SERVER="${3:-http://localhost:4319/webhook}" 13 14if [[ ! -f "$VIDEO" ]]; then 15 echo "video not found: $VIDEO" >&2 16 exit 1 17fi 18 19echo "→ sending $VIDEO to $SERVER (watch the server window for results)…" 20curl -s -X POST "$SERVER" \ 21 -F "video=@${VIDEO}" \ 22 -F "video_url=${VIDEO_URL}" \ 23| python3 -m json.tool