Dies ist eine alte Version des Dokuments!


Linux Webcam

live.jpg

Live Image

  1. motion saves image every 15 seconds to /var/www/webcam/lastsnap.jpg
  2. after that on_picture_save command from motion.conf runs webcam-cleanup.sh
  3. this script copies lastsnap.jpg to live.jpg, writes a timestamp to /var/www/webcam/lastsnap.txt and sets the rights so the webserver can access live.jpg
  4. index.html displays the live.jpg on load and every 15 seconds the lastsnap.txt is fetched via ajax. If this timestamp changed, the life.jpg is reloaded with cache breaker

Archiving

  1. crontab runs webcam-archiv.sh every 15 minutes from 5 to 21 o'Clock
  2. it copys the live.jpg to the archiv/<current-timestamp>.jpg

pub/linux-webcam.1373980673.txt.gz · Zuletzt geändert: 2013/12/06 19:12 (Externe Bearbeitung)