Files
vizionStreamer/fix_exposure.sh
2026-01-30 16:29:19 +01:00

18 lines
530 B
Bash
Executable File

#!/bin/bash
# Script to fix camera exposure settings
# This stops the stream, enables auto-exposure, and restarts the stream
SOCKET="/tmp/vizion_control.sock"
echo "Stopping stream..."
echo '{"command":"stop_stream"}' | socat - UNIX-CONNECT:$SOCKET
echo "Setting auto-exposure..."
echo '{"command":"set_exposure","params":{"mode":"auto","value":"0"}}' | socat - UNIX-CONNECT:$SOCKET
echo "Starting stream..."
echo '{"command":"start_stream"}' | socat - UNIX-CONNECT:$SOCKET
echo "Done! Camera should now show proper image."