Creare Una Live Webcam Su Internet

E' semplicissimo, basta usare il programma webcam e avere un sito su cui si possono inviare le immagini via FTP. Il programma webcam e' installato con xawtv. Con un editor di testo create il seguente file .webcamrc nella vostra home directory e scriveteci dentro la vostra configurazione:

  [grab]
  device = /dev/video0
  text = "webcam m-H:S" 
  fg_red = 255
  fg_green = 255
  fg_blue = 255
  width = 320
  height = 240
  delay = 3
  wait = 0
  rotate = 0
  top = 0
  left = 0
  bottom = -1
  right = -1
  quality = 75
  trigger = 0
  once = 0

  [ftp]
  host = ftp.maxvessi.net
  user = max@aruba.it
  pass = 123456
  dir  = public_html/images
  file = webcam.jpeg
  tmp  = uploading.jpeg
  passive = 1
  debug = 0
  auto = 0
  local = 0
  ssh = 0

Sul sito dovete mettere una pagina web che faccia l'aggiornamento automatico, per esempio cosi':

 <html>
 <head>
 <meta http-equiv="refresh" content="30" />
 <meta http-equiv="expires" content="0" /> 
 </head>
 <body>
 <h1>My live webcam</h1>
 <img src="webcam.jpeg"  />
 <body>
 </html>

A questo punto collegate la webcam e lanciate:

 webcam

se avete fatto il file in una cartella particolare potete anche lanciare

 webcam  cartella/miofilediconfigurazione

per piu' informazioni sulla configurazione, lanciate:

 man webcam