LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-03-2009, 11:12 AM   #1
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Rep: Reputation: 33
me and my new webcam


Hi guys,

I'd like to put a stream from my webcam on my site, well a page know one knows about yet....

So I've got this table...

Is there away I can make http://192.1681.3:8800, land in that table?
or have I got to use frames?

While we're at it, in table 2, I want my snapshot, which is taken every 5mins, to auto update, not sure how to achive that either.
 
Old 10-03-2009, 01:48 PM   #2
wfh
Member
 
Registered: Sep 2009
Location: Northern California
Distribution: Ubuntu Debian CentOS RHEL Suse
Posts: 164

Rep: Reputation: 44
Take a look at the 'motion' package.
 
Old 10-03-2009, 01:54 PM   #3
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by wfh View Post
Take a look at the 'motion' package.
LOL, thats what I'm using! Got it to do what I want now anyway. Iframe!!

Just to autoreload every 5mins
 
Old 10-03-2009, 02:15 PM   #4
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
javascript is the awnser:
Code:
var j = 0;
var frame=document.getElementById('<frame name here');
for(j = 0;j < 4;j++)f.src=f.src;
call that evrey 5 minits
 
Old 10-03-2009, 02:44 PM   #5
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by smeezekitty View Post
javascript is the awnser:
Code:
var j = 0;
var frame=document.getElementById('<frame name here');
for(j = 0;j < 4;j++)f.src=f.src;
call that evrey 5 minits
ah you seem to know a bit more JS than me. Just learning it. Got a progy background, just not enough, or maybe the right books.

my html is below: what I'd like to do is grab the erro when I turn off webcam, so it can display a testcard. I'm looking at loadurl? or would it be prodent for an error event handler?



Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>Untitled Document</title>
  <meta http-equiv="Content-Type"
 content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#6699ff">
<div align="center">
<p><font face="Courier New, Courier, mono"><b><font color="#00ffff"
 size="+7">Webcam</font></b></font></p>
<div style="text-align: center;"><span style="color: black;"> <br>
Last Updated:
<br>

<script type="text/javascript" language="JavaScript1.1">
      <!-- 
          
      lastmod = document.lastModified     // get string of last modified date
      lastmoddate = Date.parse(lastmod)   // convert modified string to date
      if(lastmoddate == 0){               // unknown date (or January 1, 1970 GMT)
         document.writeln("Unknown")
      } else {
      d = new Date(lastmod);
      document.write(d);
      }// -->
    </script>
</span><br>
<br>
<table style="text-align: left; width: 100%;" border="1" cellpadding="2"
 cellspacing="2">
  <tbody>
    <tr>
      <td
 style="vertical-align: top; text-align: center; background-color: rgb(255, 204, 0);">Live
Webcam<br>
      </td>
      <td
 style="vertical-align: top; text-align: center; background-color: rgb(255, 204, 0);">Last
Snap reload every 5mins<br>

      </td>
    </tr>
    <tr>
      <td style="text-align: center; vertical-align: top;"> <iframe
 src="http://192.168.1.3:8800/" height="256" width="338"> If you can
see this, your
browser doesn't understand IFRAME. However, we'll still
      </iframe> <br>
      </td>
      <td style="text-align: center; vertical-align: top;"> <iframe
 src="http://192.168.1.3/webcam/lastpic.jpeg" height="256" width="338">
If you can see this, your
browser doesn't understand IFRAME. However, we'll still
      </iframe> <br>

      </td>
    </tr>
  </tbody>
</table>
<br>
<br>
</div>
<div id="top"></div>
<div style="text-align: center;"><a
 href="http://www.freesitemapgenerator.com/"><img
 alt="Free Sitemap Generator"
 style="border: 0pt none ; margin: 3px; padding: 0pt;"
 src="http://live.freesitemapgenerator.com/img/fsgbig41.gif" border="0"></a></div>
<script language="javascript">
/* FSG 0.96 script */ 
var fsg_Live_date_package_version='0.96';
var fsg_image = 'big4';
var fsg_serial = 'b816a328c80a0b3c1fe4c083ac851ed6';
</script>
<script language="javascript"
 src="http://live.freesitemapgenerator.com/scripts/fsg096.js"></script></div>
</body>

</html>
 
Old 10-03-2009, 02:59 PM   #6
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
If you can see this, your
browser doesn't understand IFRAME. However, we'll still
???? that does not make sense
anyway
i really think that would be the uploading softwares job
 
Old 10-03-2009, 03:05 PM   #7
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by smeezekitty View Post
???? that does not make sense
anyway
i really think that would be the uploading softwares job
ok ok, It works, I haven't put the direct link in. ...thinks saying that,
it has to be referanced from something on my network. I'll work a way around that problem later.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Setting Up Motion webcam security system with your Webcam with Email & FTP. LXer Syndicated Linux News 0 06-24-2009 09:42 PM
How can I use my webcam? rpar Linux - Software 1 04-23-2009 09:05 PM
How To Install A Usb Webcam [Genius WebCam on Suse 9.1 Personal] ofvergara SUSE / openSUSE 4 11-29-2006 12:09 PM
I want to veiw my friends webcam, im using Lycoris, how do i c his webcam? CaffeinatedGamer Linux - Newbie 10 06-07-2005 07:23 PM
webcam machoman007 Linux - Hardware 1 10-22-2003 12:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration