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

7 lines
253 B
Bash
Executable File

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