Files
vizionStreamer/scripts/get_formats.sh
T
2026-10-19 14:48:26 +02:00

7 lines
263 B
Bash
Executable File

#!/bin/bash
# Get available camera formats
SOCKET="${VIZION_SOCKET:-/tmp/vizion_control.sock}"
echo '{"command":"get_formats"}' | socat - UNIX-CONNECT:$SOCKET | python3 -m json.tool 2>/dev/null || echo '{"command":"get_formats"}' | socat - UNIX-CONNECT:$SOCKET