Skip to content

Instantly share code, notes, and snippets.

@foosel
Created July 28, 2013 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foosel/6099425 to your computer and use it in GitHub Desktop.
Save foosel/6099425 to your computer and use it in GitHub Desktop.
Adjusted webcamDaemon for OctoPi that does not hang
#!/bin/bash
vcgencmd version
while true; do
if [ "`vcgencmd get_camera`" = "supported=1 detected=1" ]; then
logger "Starting webcam"
pushd /home/pi/mjpg-streamer-experimental
LD_LIBRARY_PATH=. ./mjpg_streamer -o "output_http.so -w ./www" -i "input_raspicam.so -d 100"
popd
fi
sleep 120
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment