Carterlake/AJAX/PHP templates available

Ken,

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

to:

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’] = ‘http://forecast.weather.gov/MapClick.php?site=GRR&map.x=148&map.y=161&TextType=2’;

Line in advforcast2.php is:

$fileName = “http://forecast.weather.gov/MapClick.php?site=GRR&map.x=148&map.y=161&TextType=2”;//

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

EST5EDT
CST6CDT
MST7MDT
PST8PDT

if you like (assuming your city doesn’t have a special time setting)
Check http://saratoga-weather.org/timezone.txt 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 http://www.thanko.info/advforecast2.php, it seems to be working for Grand Rapids, MI now …

Best regards,
Ken

Ken,

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 www.thanko.info/wxindex.php.

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,
Ken

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: http://discourse.weather-watch.com/t/28854. 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,
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’.

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 http://www.thanko.info/testtags.php?sce=view )

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…http://www.branfordfire.com/weather/wx7play.php

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

Regards,

Jack

Ken,

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,
Ken

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,
Ken

Ken,

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

Jack

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,
Ken

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

Jack

I see the testtags.php is updated with the right fields.
What is your Settings.php setting for
$SITE[‘timeFormat’]

?

Best regards,
Ken

$SITE[‘timeFormat’] = ‘D, d-M-Y g:ia T’;

Jack

Jack,
Try changing the

  $utcstr = substr($indate,10) . " " . substr($indate,0,8); // move formats

to

  $utcstr = substr($indate,10) . " " . substr($indate,0,9); // move formats

in your page.

I think I left in a version that only gets the ‘UT’ in ‘UTC’ which works for PHP4 but fails for PHP5. #-o

Ken

Ken,

So far no luck, but you are right I am on php5. Is it possible I need to wait for the next WD upload?

Regards,

Jack

Edit…The upload did not change anything.