Weather Station Hardware > Weather Web Cams

My New WebCam

<< < (4/14) > >>

up10ad N9RJH:
Greg, no need to build or buy an enclosure, the cam is already outdoor ready.  Mine has operated in -10 to -25  :o  for the past few weeks, no problem.  Here is a picture of it taken from my Canon PTZ cam (there is a preset on the Canon to look at the Toshiba):



Can you post a link to the cam pic?  I'm running wireless as well, no problem.  Glad you got it working!

DundeeWeather:
So rain won't damage it?  I don't really have an overhang or a porch to put it under.  I see that the camera is enclosed, but the sides are open for the mic input / SD card insert.  

Right now the cam is inside pointing at me in the shack.  I'm a bit camera shy so I'm not going to post a link  :)   When I get it pointing at something other than me I'll gladly share.

Do you recommend a constant stream or just the __Live snapshot with refresh?

up10ad N9RJH:
Gary,

I don't think you need anything to protect it if you use the plastic visor/cover as shown in the pic below.  I previously had mine mounted on the back of my house, totally exposed to the wind and weather.  

When I moved it under the front porch overhang I removed the visor.  

If you have bandwidth to spare you could offer both streaming and single shots.  Another alternative is to post a single shot that refreshes every 5 seconds for 2 minutes or so (only the pic refreshes, not the entire page).  Here is how to do so.

First, use notepad to create a Javascript file on your web server named imagecounter.js containing the following:

--- Code: ---var camImage = 'http://[IPaddress:port#]/__live.jpg?&&&';
var refreshIntervalSeconds = 5;
var secondsLeft = refreshIntervalSeconds;
var reloadCount = 24;

function startCount() {
  if (reloadCount < 1) {
     document.webCam.timer.value = "-----";
    return;
  } else {
      startClock();
      }
}
function startClock() {
  if (secondsLeft > 0) {
    if (secondsLeft < 10) {
      document.webCam.timer.value = '0' + secondsLeft;
    } else {
      document.webCam.timer.value = secondsLeft;
    }
    secondsLeft = secondsLeft - 1
    timerID = setTimeout('startClock()', 1000);
  } else {
  date = new Date();
  imageNumber = date.getTime();
  document.webCamImage.src = camImage + '?' + imageNumber;
  secondsLeft = refreshIntervalSeconds;
  reloadCount = reloadCount - 1;
  startCount();
  }
}
--- End code ---

In your html page somewhere before the cam image you have to add a few things.  First, call the above code by adding a line:

--- Code: ---<script type="text/javascript" src="imagecounter.js"></script>
--- End code ---

Then you need to add a 'onload' statement to an existing image so the timer starts when the page is loaded.  I add it to a new.gif just before the cam image, as you can see in the code below.  At the location where you want the cam image and countdown timer, create a form to contain your cam image.

--- Code: ---<img onload="startClock()" src="new.gif">

<form name="webCam" action="#">
Image below will refresh every 5 seconds for two minutes - Auto-refresh in: <input type="text" name="timer" size="2"> seconds.
<img src="http://[IPaddress:port#]/__live.jpg?&&&" name="webCamImage" alt="Refreshes every 5 seconds..." title="Refreshes every 5 seconds..." width="640" height="480" border="0">
</form>
 
--- End code ---

Obviously replace the ip address with your cam address, or any image file reference, and change the width and height if needed.  The form name must match the name used in the .js file for the document, so either don't change it or change both.

You can change the refresh interval and the total time before it stops refreshing by modifying the var refreshIntervalSeconds = 5;
and the var reloadCount = 24; Note that 24 indicates that it does 24 refreshes at 5 seconds totalling 5*24=120 seconds total time. For 3 minutes, set it to 36.

This will work for any image that changes, either on disk or one that can be refreshed from a camera or other source.  Just change the image reference in both the .js file and in the form reference.

So now we want to see it work on your site.  You have a really nice clean look and it needs a cam image.  Post a link!

DundeeWeather:
Rick,

Could you be any more AWESOME?  This is fantastic!  I promise I'll get it put up soon.  Want to sell your shield for your camera?

Wow this is great - HUGE help, thank you!

GREG

racenet:
Guys, any suggestions on the best place to pick up one of these cameras, since they are discontinued? Was looking around the web, found many places that had them listed, but not available. :(


Bob

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version