Skip to content

Commit

Permalink
Add webcam testing. #234
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed Jan 22, 2019
1 parent 22b7a2c commit e57be30
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions live_rpicam.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,42 @@ HEIGHT=$3
ROTATION=$4
DIR=$5

if [[ "{ROTATION}" == "h" ]];
# Test defaults
if [[ "${NAME}" == "" ]];
then
NAME="Test"
fi

if [[ "${WIDTH}" == "" ]];
then
WIDTH="1920"
fi

if [[ "${HEIGHT}" == "" ]];
then
HEIGHT="1080"
fi

if [[ "${ROTATION}" == "" ]];
then
ROTATION="0"
fi

if [[ "${DIR}" == "" ]];
then
DIR="/dev/shm/test"
fi

if [[ ! -d "${DIR}" ]];
then
mkdir -p "${DIR}"
fi


if [[ "${ROTATION}" == "h" ]];
then
ROTATION="-hf"
elif [[ "{ROTATION}" == "v" ]];
elif [[ "${ROTATION}" == "v" ]];
then
ROTATION="-vf"
else
Expand Down

0 comments on commit e57be30

Please sign in to comment.