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.
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.
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
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 http://www.thanko.info/advforecast2.php, it seems to be working for Grand Rapids, MI now …
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.
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.
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,
Ken
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’.
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…
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.
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