Carterlake/AJAX/PHP templates available

I’ve finished off the docs and packed up the scripts and they’re ready for download now.

The Carterlake/AJAX/PHP template set comes in three flavors depending on the location of your weather station – one set for USA, one for Canada and one for World (non-USA, non-Canada). The varieties are due to the different support scripts required for forecasts, advisories and radar.

Please read and follow the instructions if you are updating a current Carterlake-based website, or have previously installed the AJAX dashboard/sidebar demo pages … you’ll have to take special care to not alter your existing website while working with the new template set. If you’re going into PHP for the first time, then this should make it easier to set up your website … you should follow the instructions too :lol:

The Installation page has a lot of details on how to handle existing copies of scripts that are updated by this template set.

USA Demo Canada Demo World Demo
[url=] [img][/img] [/url] [url=] [img][/img] [/url] [url=] [img][/img] [/url]

My special thanks to Kevin (TNETweather) and Mike (MCHALLIS) for their assistance in this project, and to Tom (Carterlake) for the original HTML version of the WD templates which form the basis of this PHP-driven version.


Best regards,

Nice work Ken, I know a lot of people are going to really appreciate this effort. Thank you to all that contributed too!



I’m a bit confused on what I should use for time zone.

Should I uncomment one of the $ourTZ lines and set it to America/Detroit?

Or should I edit the $SITE[‘tz’]= line to reflect Eastern time zone for Michigan?


In the readme.txt in the wd-webfiles folder 5th line of text should be changed from:

Use the Weather-Display Control Panel, FTP&Connections, Custom Web Page Setup TAB


Use the Weather-Display Control Panel, Web Files/Web Page/Real Time FTP/WDL, Custom Web Page Setup TAB

Can’t seem to get my forecast to be for Grand Rapids, MI either. Line in settings.php is:

$SITE[‘fcsturlNWS’] = ‘’;

Line in advforcast2.php is:

$fileName = “”;//

Cache has been cleared several times. Files have been uploaded.

Thanks Tim! I’ve corrected it in the distributions.

In Settings.php you should have the correct timezone set there. The other scripts will pick it up from the
$SITE[‘tz’] setting.
For the USA, you can use


if you like (assuming your city doesn’t have a special time setting)
Check for other entries that should be valid.

For your advforecast2.php issue, did you update the script with the one in the distribution?
What’s the URL to your advforecast2.php ? If it’s, it seems to be working for Grand Rapids, MI now …

Best regards,


I’ve got the basic templates working.

Forecast just started working. Not sure what I did. It may be that there was a new forecast issued by the NWS at 8:03 pm ET. Maybe I was reading the forecast.txt that had Saratoga in it.

I do have a question although they are really WD questions. I’ve been unable to get trends-inc.php and testtags.php to upload.

New site is

I’ll be working on this furiously over the weekend. I will continue to report any issues that I find.

I really appreciate all the work you put into this, Ken. I’ve done some development myself and understand the amount of effort that goes into what you’ve put together.

Sweet, Tim! I see you’ve already done some nice customization …
Please let me know what you found out about the testtags.php/trends-inc.html upload issue… sounds like a FAQ in the making.

You’re very welcome! The Docs were the hardest (isn’t is always the case)… code is easy/docs are hard.

Best regards,

Looks like my thermometer.php is currently out to lunch. Seems to have happened after I added the webcam link.

Also, in the rain section I’m showing 9 rain days in Dec. Not sure what is happening there either.

Oops…See this thread about testtags and trends-inc: I did not set up the upload in Custom File creation…

Just upload the thermometer-blank.png file again… that should fix the missing graphic.

The template set comes with a dummy testtags.php and trends-inc.html so that while you’re developing your site, you won’t get a php error for those files being not found.

When you start regular uploads of testtags.txt → testtags.php and trends-inc.txt → trends-inc.html, they should replace those dummy files with real data from your weather station.

Best regards,

BTW… I’ve started a template user website link section for the templates … please let me know your Location and URL of your Carterlake-PHP template website when you go ‘live’.

Looks like moon phases are not correct either.

testtags.php should be uploading now. Daily Stats page is correct.

Resent thermometer-blank.png. Graphic still messed up. I think it is there. It’s not displaying correctly.

Your testtags.php is still the dummy copy (see date in )

The thermometer-blank.png still shows
"The image

Wow the questions are flying lol…I have one too!

I seem to be having an issue with the “get_localdate” function. See…

The UTC time seems correct but it is not converting the local time date. Is this some type of daily update?




I stole the therm…blank.png directly from your web site and uploaded it to mine. Still get the same error. This is very strange. It is looking for the file in the root, right?

Me again. :oops: Forgot to change the FTP transfer type back from ASCII to binary. Doh…

Looks like the moon phases are correct now also. I think I’ll quit for the night. Making more mistakes than a politician… :smiley:

Hi Jack! Yep… love the flying questions. My thanks to Tim for being an early adopter.

It looks like your wx7play.php page is showing EST conversions now… is it still a problem?

Best regards,

Yep looking for it in the document root. Definitely have to upload .png/.jpg/.gif files as BIN mode :slight_smile:

Looks like the testtags.php is being uploaded now too so it’s your conditions being shown now.
Best regards,


Under each gif it shows this…Wed, 31-Dec-1969 7:00pm …that’s what I meant, sorry!


If you have an older version of testtags.txt in your c:\wdisplay\webfiles directory, replace it with the one in the distribution … it has the extra tags needed to show the seasons on the wxastronomy.php page.

Best regards,

If you have an older version of testtags.txt in your c:\wdisplay\webfiles directory, replace it with the one in the distribution .. it has the extra tags needed to show the seasons on the wxastronomy.php page.

Yes I uploaded the new version, which fixed the utc time right away, but the Wed, 31-Dec-1969 7:00pm still has not changed. #-o


I see the testtags.php is updated with the right fields.
What is your Settings.php setting for


Best regards,