Author Topic: wxwebcam.php  (Read 3696 times)

0 Members and 1 Guest are viewing this topic.

Offline meteotajo

  • Member
  • *
  • Posts: 22
    • MeteoTajo
wxwebcam.php
« on: August 30, 2008, 11:17:20 AM »
Hello… Where I can find the file wxwebcam.php to incorporate it Web, I have seen that they use many stations and Carterlake like wx12.php

Thanks.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: wxwebcam.php
« Reply #1 on: August 30, 2008, 01:37:32 PM »
I don't think there's a common template for how to incorporate a webcam into your site .. each camera and software requires it's own approach.  It would be helpful to know what model of webcam you're using, and what software you want to create the images for posting. 

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline meteotajo

  • Member
  • *
  • Posts: 22
    • MeteoTajo
Re: wxwebcam.php
« Reply #2 on: August 30, 2008, 02:12:27 PM »
Hello Ken
My webcam is Logitech notebooth Pro and use webcam32 paa to raise the images the servant and from has to present/display them in the Web. I have seen this http://www.carterlake.org/wx12.php and in other pages also like webcam.php, for that reason php asked count was the file.

 Thanks

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: wxwebcam.php
« Reply #3 on: August 30, 2008, 02:18:35 PM »
Since Tom (carterlake) has not released his script for general use, I'd suggest you contact him directly and ask if it's ok to use his method (JavaScript) for your webcam page.  You can PM Tom at user carterlake on this forum.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline meteotajo

  • Member
  • *
  • Posts: 22
    • MeteoTajo
Re: wxwebcam.php
« Reply #4 on: August 30, 2008, 02:30:49 PM »
I have already sent an email to him to Tom

Thanks again

Offline carterlake

  • Senior Contributor
  • ****
  • Posts: 243
    • CarterLake.org
Re: wxwebcam.php
« Reply #5 on: August 31, 2008, 12:06:55 PM »
Sorry, I've been in Lincon, Nebraska watching the Cornhuskers. (GO BIG RED)  :-P

Anyway, the script I use is a javascript from the makers of Webcam32.

You have to add:

Code: [Select]
<script language="javascript" type="text/javascript" src="basic_refresh.js"></script>
to your header tag and...

Code: [Select]
  <body onload="global_timer();">
to your body tag

then the javascript in the page is:

Code: [Select]
<script language="Javascript" type="text/javascript"><!--
                                var img_init = 'http://YOURIPADDRESS:8888/video/pull?';
                                var ref_init = 100;
                                var ref_width = 640;
                                var ref_height = 480;
                                createImage(img_init, ref_init, ref_width, ref_height);
                                // -->
            </script>

Here is the javascript file itself:

http://www.carterlake.org/basic_refresh.js

Note that I've modified these three bits of code to personalize my loading, error, and pause images.

lURL = "carterlakecam.jpg";
eURL = "carterlakecam.jpg";
pURL = "cam_pause.php";

Davis VP2 6153; Weather Display (LIVE w/ Ajax); Quickcam for Notebooks Pro; Boltek w/ Nexstorm; GRLevel3; live NOAA Radio

Offline meteotajo

  • Member
  • *
  • Posts: 22
    • MeteoTajo
Re: wxwebcam.php
« Reply #6 on: August 31, 2008, 02:15:23 PM »
Hello to carterlaker…
Thank you very much to respond.
Not as much php as you, and have not understood much what there are saying to me, to these three I have it codes to add and to create to me dividing of the group wxnewpage.php in the body of body .

To place the file basic_refresc.js in the root and cam_pause.php ?

It excuses to my ignorance but not for php any more that stops enough to modify some parameter

Thanks.

Offline carterlake

  • Senior Contributor
  • ****
  • Posts: 243
    • CarterLake.org
Re: wxwebcam.php
« Reply #7 on: August 31, 2008, 04:00:59 PM »
Hello to carterlaker…
Thank you very much to respond.
Not as much php as you, and have not understood much what there are saying to me, to these three I have it codes to add and to create to me dividing of the group wxnewpage.php in the body of body .

To place the file basic_refresc.js in the root and cam_pause.php ?

It excuses to my ignorance but not for php any more that stops enough to modify some parameter

Thanks.

This code actually has nothing to do with PHP.

It is just HTML and javascript.

You put the <script> code in the header tags.

You put the onload code in the <body> tag.

You put the actually javascript call HTML within the body of the regular page HTML.

The basic_refresh.js you have to upload to your HTML directory.

Probably the easiest way to do all this is to make a test page.

Code: [Select]
<html>
<head>

<script language="javascript" type="text/javascript" src="basic_refresh.js"></script>

</head>

<body onload="global_timer();">


<script language="Javascript" type="text/javascript"><!--
                                var img_init = 'http://YOURIPADDRESS:8888/video/pull?';
                                var ref_init = 100;
                                var ref_width = 640;
                                var ref_height = 480;
                                createImage(img_init, ref_init, ref_width, ref_height);
                                // -->
            </script>

</body>
</html>

Davis VP2 6153; Weather Display (LIVE w/ Ajax); Quickcam for Notebooks Pro; Boltek w/ Nexstorm; GRLevel3; live NOAA Radio