7 lines
263 B
Bash
Executable File
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
|