Files
sf_bernina_scripts/record_camera
2018-03-13 14:37:03 +01:00

14 lines
299 B
Bash
Executable File

#!/bin/bash
if (( $# != 2 )); then
echo "usage: $0 <camera> <filename>"
exit -1
fi
CAMERA_NAME=$1
FILENAME=$2
STREAM=$(curl -s http://sf-daqsync-01:8889/api/v1/pipeline/instance/${CAMERA_NAME}_sp1 | sed -e 's/.*"stream": "\([^"]*\)".*/\1/')
echo $STREAM
bs h5 -s $STREAM -m sub $FILENAME