cloudy

Author Topic: Weather Web Cam Images History PHP Script and Template Plugin  (Read 18003 times)

0 Members and 1 Guest are viewing this topic.

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Weather Web Cam Images History PHP Script and Template Plugin
« on: September 18, 2008, 08:37:29 PM »
Weather Web Cam Images History PHP Script and Template Plugin

Version: 1.02  04-Nov-2009
- Improved thumbnail image links. Better JavaScript link method.

Version: 1.01  19-Sep-2008
-- Fixed default settings inside cam-history-inc.php, the default $script_name setting was wrong
-- minor comment cleanup in all files
-- no feature changes in this release.

Live Demo:
You can see my weather cam archives in use here:
http://www.642weather.com/weather/cam-history.php

Requirement:
You HAVE to be using my 'PHP Web Cam Image Text Overlay' method from my tutorial here:
http://www.642weather.com/weather/scripts-weather-cam-text.php
If you have completed the tutorial you will have a web cam image that updates every 5 minutes on your web server.

Installation instructions are in the included readme.txt in the zip file download below.

If you use the "Carterlake Weather Display/PHP/AJAX Website USA Template Set" from http://saratoga-weather.org/template/index.php
   then you can use the included wxcam-history.php
else there are easy instructions to integrate into your own site template page.

More about it:
http://www.642weather.com/weather/scripts-weather-cam-history.php

Download:
http://www.642weather.com/weather/scripts/web-cam-history.zip
« Last Edit: November 05, 2009, 05:59:59 AM by MCHALLIS »

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #1 on: September 18, 2008, 09:06:32 PM »
If you downloaded it before this post, please download again.
cam-view.php had a tag left in there from my server config.


Offline jimmyb

  • Posts: 138
  • Tinley Park, Illinois USA
    • Will Cook Weather
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #2 on: September 18, 2008, 11:31:35 PM »
Wow quick turn around ... :) Thanks again
Check out my LIVE internet radio show (not weather related) The AnJ Show http://anj.westpm.net

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #3 on: September 18, 2008, 11:43:47 PM »
Wow quick turn around ... :) Thanks again


Let me know if you try it, please report any problems you might have.

Offline jimmyb

  • Posts: 138
  • Tinley Park, Illinois USA
    • Will Cook Weather
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #4 on: September 18, 2008, 11:46:12 PM »
Way to easy   http://willcookweather.com/wxcam-history.php

Will play with that day night setting (which is what I also liked) before I post but for now .. I LOVE IT :)
Check out my LIVE internet radio show (not weather related) The AnJ Show http://anj.westpm.net

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #5 on: September 18, 2008, 11:57:59 PM »
Don't forget to set the page title settings inside cam-view.php

Offline jimmyb

  • Posts: 138
  • Tinley Park, Illinois USA
    • Will Cook Weather
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #6 on: September 19, 2008, 12:32:04 AM »
Got it thanks .. did not catch that. Ok so all working except .. it is still making images AFTER the camera has been shut off (notice time in top right corner. Had to set that so I could check that new images are being uploaded). A little confused, do I set this $disable_refresh_at_night = 1 to 1 or 0 to turn off the making of images at night?

Any other settings I should set to turn off?
Check out my LIVE internet radio show (not weather related) The AnJ Show http://anj.westpm.net

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #7 on: September 19, 2008, 01:04:06 AM »
$disable_refresh_at_night = 1, all that does is disable the meta refresh on the web cam history page at night to save bandwidth if someone leaves that page open for hours at night.

Did you put this in your image-webcam-overlay.php?
replace:
Code: [Select]
$archive =1;
with:
Code: [Select]
include_once './testtags.php';
if($dayornight == 'Night') {
       $archive =0;
}else{
       $archive =1;
}

What that does is prevent your web cam image from archiving to your web cam history page at night.

Offline jimmyb

  • Posts: 138
  • Tinley Park, Illinois USA
    • Will Cook Weather
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #8 on: September 19, 2008, 01:29:48 AM »
Oops   :oops: mis-read that. Thought it did not pertain since I was using the wxcam file .. thanks again

EDIT: Well made your changes but it is still not working .. and I found out why. It seems my testtags.php does NOT have statement $dayornight :(

EDIT EDIT: That did it. Added the $dayornight setting to testtags.txt and now it is turned off. Whew .. this stuff ain't easy :) Wonder how many more settings I am missing?
« Last Edit: September 19, 2008, 02:16:38 AM by jimmyb »
Check out my LIVE internet radio show (not weather related) The AnJ Show http://anj.westpm.net

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #9 on: September 19, 2008, 05:10:52 AM »
Sorry you had trouble, I added a note about that to the readme.txt

here is the note ...

Note: your testtags.php file must contain the  $dayornight tag
if it does not, edit the template in your wdisplay/webfiles folder and add this line to it:
$dayornight       = '%dayornight%';

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #10 on: September 19, 2008, 03:15:02 PM »
jimmyb,

The page links are broken...

You need to edit your cam-history-inc.php ...

change your $script_name variable to this:
$script_name     = 'wxcam-history.php';

I will make this the default in vers 1.01

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #11 on: September 19, 2008, 04:02:03 PM »
Version: 1.01  19-Sep-2008
-- Fixed default settings inside cam-history-inc.php, the default $script_name setting was wrong
-- minor comment cleanup in all files
-- no feature changes in this release.

Offline jimmyb

  • Posts: 138
  • Tinley Park, Illinois USA
    • Will Cook Weather
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #12 on: September 20, 2008, 12:02:57 AM »
Thank you sir. Fixed. Did not bother checking the pages until you mentioned them.
Check out my LIVE internet radio show (not weather related) The AnJ Show http://anj.westpm.net

Offline kbowman

  • Posts: 33
  • Perry Hall, Maryland, USA
    • Perry Hall Maryland Weather
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #13 on: September 24, 2008, 08:56:48 PM »
Mike,

Thanks for sharing another great script.  I am using the webcam overlay and webcam history scripts on my website now.

Ken
Ken - Perry Hall Md
http://www.phmdwx.net


Offline jahuff

  • Posts: 760
  • Northern New Hampshire, USA
    • Weather Data Pittsburg, NH
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #14 on: September 27, 2008, 05:08:57 PM »
Hi All,

I'm in the process of setting up the "Weather Web Cam Images History PHP Script and Template Plug in", before I do I have to setup the "Multifunction Image Handler PHP Script". I think I have it setup properly but when I try and test it I get a "Error: 009".

Any help would be appreciated.

John