Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsDiscussion Forum → How to set up a webcam?
How to set up a webcam?
2005-07-20, 11:56 PM #1
I want to set up a webcam on my site to show a picture every like 10 seconds or so. How would I do this. I already have a webcam, I just dont know where to go from here.
2005-07-21, 1:00 AM #2
You either need a webserver running on your computer, along with a program that captures an image from your webcam every ten seconds. Your page then just needs these headers to refresh the site every ten seconds:
Code:
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<meta http-equiv="refresh" content="10yourpage.html">


Another way would be running a script every ten seconds, that captures an image and uploads it via ftp/scp/whatever to your webserver. On which OS is your computer running? On Linux it's fairly easy to write such a script, but I don't know about Windows.
Sorry for the lousy German
2005-07-21, 9:12 AM #3
Windows XP
2005-07-21, 9:30 AM #4
One of the windows xp powertoys is called timershot. I think you can set it to keep overwriting the same image. What kind of internet connection do you have?
gbk is 50 probably

MB IS FAT
2005-07-21, 9:59 AM #5
You are going to need a DSL or Cable line connection to do this, it would have adverse an effect on a 56k.
2005-07-21, 10:19 AM #6
I have DSL:)
2005-07-21, 10:58 AM #7
If you have XP Pro this shouldn't be a problem. Go to add/remove programs in control panel, click add/remove windows components. Put a check in the box beside Internet Information Services (IIS). It'll ask for your windows cd and install your web server. Next close that and go back to control panel. Go to administrative tools and then Internet Information Services. Click on your computer name, and then right click on default web site and choose properties. Go to the Documents tab. Click the add button and type in "index.html" without the quotes. Click ok and use the arrow buttons on the side of the list to move index.html to the top. Click ok and close the Internet Information Services window.

Now you have your web server set up :D

To have your webcam take the pictures automaticly, download TimerShot .

Install that, and open it. You may also want to create a shortcut to it in the start menu\programs\startup menu so it starts with windows. Once you get it open, click the arrow button at the bottom right corner. Change My Pic.jpg to mypic.jpg and the location to "C:\Inetpub\wwwroot" (no quotes). You can change however often you want it to take the pictures, just make sure you DON'T check the box that says "save a new copy every time a picture is taken"

Now close timershot, it should remain running in the system tray (down by the clock) Now open up notepad, and paste this text into it:

[HTML]<html>
<head>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="REFRESH" CONTENT="10">
</head>

<body>
<h2>Overlord's Webcam!</h2>
<img src="mypic.jpg" />
</body>
</html>[/HTML]

If you want to change the interval the page refreshes at, change the <META HTTP-EQUIV="REFRESH" CONTENT="10"> line. Change the 10 to however many seconds you want it to be.

Save this as "C:\Inetpub\wwwroot\index.html" (no quotes). Now if you've done everything correctly you should be able to pull up your web browser, and type in http://localhost/ and see your webcam page. :D If you tell me what kind of router you have I can tell you how to set up port forwarding and dynamic dns so you can have something like http://overlord.dyndns.org/ that everyone can see.
gbk is 50 probably

MB IS FAT
2005-07-21, 11:04 AM #8
I dont have xp pro
2005-07-21, 11:07 AM #9
I don't think there should be a diffrence the program should still run considering Home and Pro are running the same Microsoft Windows Kernel.
2005-07-21, 11:20 AM #10
[QUOTE=Yummy Cookie]I don't think there should be a diffrence the program should still run considering Home and Pro are running the same Microsoft Windows Kernel.[/QUOTE]

The difference is XP Pro comes with IIS and XP Home doesn't. ;)

You'll need to load Apache then, I don't have much experence with that, but here's a good site to show you what to do.

http://httpd.apache.org/docs/windows.html
gbk is 50 probably

MB IS FAT
2005-07-21, 11:22 AM #11
Well that is a service not a program. ;)
2005-07-21, 11:47 AM #12
[QUOTE=Yummy Cookie]Well that is a service not a program. ;)[/QUOTE]


Oh yeah? Well *you're* a service...>.>
2005-07-21, 11:57 AM #13
ok, i found a program to capture my webcam, and upload it, but for the resfreshing. Is there a way just to make the image refresh and not the whole page?

↑ Up to the top!