Files
vizionStreamer/scripts/get_formats.sh
2025-12-12 11:47:43 +01:00

7 lines
245 B
Bash
Executable File

#!/bin/bash
# Get available camera formats
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