cloudy

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

0 Members and 2 Guests are viewing this topic.

Offline Stronghurst

  • You Are Never Alone With a Schizoid
  • Posts: 2,061
  • Stronghurst,IL USA
    • Burgus Computers
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #45 on: October 30, 2008, 10:10:06 PM »
How do you get WD to upload webcamimage-plain.jpg ?  All I can get it to do is upload webcamimage.jpg  Can the script be changed to accommodate the default settings for WD?

Mark
« Last Edit: October 30, 2008, 10:19:33 PM by burgus »
http://www.burgus.org

Every day is a good day.  Just that some days are better than others.

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 #46 on: October 31, 2008, 01:25:25 AM »
Mark,

I am out of town, not able to look at my WD settings.

Yes you can change the image names in the image handler script to use the webcamimage.jpg if you want.
Just make sure to name the 3 images uniquely.


Offline Stronghurst

  • You Are Never Alone With a Schizoid
  • Posts: 2,061
  • Stronghurst,IL USA
    • Burgus Computers
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #47 on: October 31, 2008, 01:29:52 AM »
Cool

Thanks

Mark
http://www.burgus.org

Every day is a good day.  Just that some days are better than others.

Offline Stronghurst

  • You Are Never Alone With a Schizoid
  • Posts: 2,061
  • Stronghurst,IL USA
    • Burgus Computers
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #48 on: November 01, 2008, 02:18:08 AM »
Found where I was uploading the images from.  And I used your default settings.  Works great.  I used a temp site to work on it and copied the images to my working site.  So all the images have the same time stamp for tonight.  But tomorrow I expect it to be running correctly.

Since I removed WD text overlay.  When I make my movies my wind, temp, etc is not there any more.  Can I have my cake and eat it too?

Mark
http://www.burgus.org

Every day is a good day.  Just that some days are better than others.

Offline iomkiwi

  • Posts: 163
  • Kerikeri, Bay of Islands, NZ
    • Kerikeri Weather
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #49 on: November 02, 2008, 12:11:35 AM »
Thanks for the script Mike, I am now using it on my site too.
Seem to have everything almost sorted, but my overlay isn't updating at the same time as the images. Images update at the ten minute intervals I have set but the overlay only updates every half hour or so.

http://www.weather.radioyachting.com

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 #50 on: November 02, 2008, 02:58:49 AM »
iomkiwi

The problem must be your testtags.php is not updating often enough
http://www.weather.radioyachting.com/testtags.php?sce=view

Mine updates every 5 min

I added your link to my page
« Last Edit: November 02, 2008, 03:02:12 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 #51 on: November 02, 2008, 03:04:29 AM »
Mark,

I use WU 24hr Time lapse video
http://www.642weather.com/weather/cam.php

The time lapse video is a free WU feature for WU image uploaders.
http://www.642weather.com/weather/scripts-weather-cam-uploader.php

Offline Stronghurst

  • You Are Never Alone With a Schizoid
  • Posts: 2,061
  • Stronghurst,IL USA
    • Burgus Computers
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #52 on: November 02, 2008, 01:05:19 PM »
Thank you Mike

Mark
http://www.burgus.org

Every day is a good day.  Just that some days are better than others.

Offline Stronghurst

  • You Are Never Alone With a Schizoid
  • Posts: 2,061
  • Stronghurst,IL USA
    • Burgus Computers
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #53 on: November 02, 2008, 04:26:02 PM »
OK I reluctantly went back to WD putting the overlay on.  I did like your overlay on the video.  But it seemed to be the only way to have an archive of videos with an overlay.

And I put the day/night tag in the test.txt so maybe I won't be taking pics at night :oops:

Mark
http://www.burgus.org

Every day is a good day.  Just that some days are better than others.

Offline Stronghurst

  • You Are Never Alone With a Schizoid
  • Posts: 2,061
  • Stronghurst,IL USA
    • Burgus Computers
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #54 on: November 02, 2008, 05:54:36 PM »
After the time change last night my pictures and time stamp are off?  I will change the script to correct, but did any one else notice this?

Mark
http://www.burgus.org

Every day is a good day.  Just that some days are better than others.

Offline iomkiwi

  • Posts: 163
  • Kerikeri, Bay of Islands, NZ
    • Kerikeri Weather
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #55 on: November 05, 2008, 07:16:57 AM »
Hi Mike
 I think I have my site working as it should now - but I have a feature request.
Is it possible to have the images archiving from before sunrise and finishing after sunset?
I am assuming that the cutoff is set by the sunrise/sunset tags, but it would be nice to capture the pics just before and after.

Thanks

Alan

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 #56 on: November 05, 2008, 04:58:33 PM »
Alan,

I made some code to set an offset in minutes to offset $dayornight tag for Day or Night

For anybody else reading this thread. If you do not want this offset feature, no need to install this code.

This code overrides the $dayornight tag with a new offset $dayornight based on  adjusted sunrise / sunset times

Put this code at the bottom of your testtags.txt template in your WD webfiles folder

Code: [Select]
// set offset in minutes to offset $dayornight tag for Day or Night
$day_offset   = '-60';  // $day_offset   = '-30'; this subtracts 30 minutes before switching from Night to Day
$night_offset = '+60';  // $night_offset = '+30'; this adds 30 minutes before switching from Day to Night

$t_now = date('Hi', strtotime("$time"));
$t_sr  = date('Hi', strtotime("$sunrise $day_offset minutes"));
$t_ss  = date('Hi', strtotime("$sunset $night_offset minutes"));

if( $t_now > $t_ss || $t_now < $t_sr ) {
  $dayornight = 'Night';
}
else {
  $dayornight = 'Day';
}

Note: you may need to adjust the $day_offset and $night_offset settings to your liking.
Not all web cams are the same as far as how good they show low light levels, so therefore no one offset setting will fit all.

Offline iomkiwi

  • Posts: 163
  • Kerikeri, Bay of Islands, NZ
    • Kerikeri Weather
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #57 on: November 06, 2008, 07:51:28 AM »
Thanks Mike

Offline Stronghurst

  • You Are Never Alone With a Schizoid
  • Posts: 2,061
  • Stronghurst,IL USA
    • Burgus Computers
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #58 on: November 06, 2008, 12:22:32 PM »
Worked like a charm.

Thank you
Mark
http://www.burgus.org

Every day is a good day.  Just that some days are better than others.

Offline rafid

  • Posts: 23
  • Bagnacavallo, Ravenna, ITA
Re: Weather Web Cam Images History PHP Script and Template Plugin
« Reply #59 on: January 19, 2009, 12:17:03 PM »
Hello Mike!,
i use your scrpt by 2-3 month and now i have make a change , i have remove the page with thumb and i have create a slideshow page with my 150 last image...

now my question, with this good mode of capture is possible to make a video of xx images with another script? yes?..

i have linux web (php) and i use a old Canon A400 for cam, this is the page (secret for now!..to test) http://www.meteomasiera.it/wxslide5.php


tnx in advance, Raf...ooooppps!  CONGRATULATION FOR THIS SCRIPT !!