Questions on the forecast script,
Might as well leave it on this thread I guess. O.K. I downloaded the the script and the icon sets. I see it's pretty self explanatory to upload the icon sets to a new folder in the public_html folder i.e. forecast/images so that's simple enough.
That's correct.
Also see in the script how to change to your zone forecast and to replace the stock url to your url for the point forecast. Also to add the "?force=1" to the end of your point forecast url. So far so good.
That's not quite correct. the $fileName variable inside the advforecast2.php script needs to be changed to the URL for your point-printable forecast (follow the instructions inside the comments in the script).
The advforecast2.php script itself should be placed in the document root of your website (your html directory). You also need to set the $NOAAzone variable in the script to the NOAA county warning zone for your area (instructions also in the comments in the script itself).
The ?force=1 shouldn't be added to the URL for advforecast2.php as it defeats the purpose of the cache .. it will reload the contents of the point-forecast from the forecast.weather.gov website. That parameter is only used to reload the cache in case it was empty (fetch from forecast.weather.gov failed).
Now the questions or if you can point me to the thread where this has been discussed. Where does the script go first of all?? In the public html folder or do you copy and paste from the script and insert it in your index.html page?? Also the initial forecast.txt file that was saved off of your point forecast does that get uploaded just to the public html folder?? The instructions would probably be pretty clear to someone used to working with scripts as it probably takes a few things for granted that a noob might not realize. Thanks again in advance.
The advforecast.php script goes in your document root (same directory as your site's index.html file).
In c:\wdisplay\webfiles edit wxlocal2.html to replace
<h3>National Weather Service Forecast</h3>
<p><b><span style="text-transform: uppercase">%5dayforecastdayday1%</span></b>
<br /><span style="text-transform: capitalize">%5dayforecastday1%</span></p>
<p><b><span style="text-transform: uppercase">%5dayforecastdayday2%</span></b>
<br /><span style="text-transform: capitalize">%5dayforecastday2%</span></p>
<p><b><span style="text-transform: uppercase">%5dayforecastdayday3%</span></b>
<br /><span style="text-transform: capitalize">%5dayforecastday3%</span></p>
<p><b><span style="text-transform: uppercase">%5dayforecastdayday4%</span></b>
<br /><span style="text-transform: capitalize">%5dayforecastday4%</span></p>
<p><b><span style="text-transform: uppercase">%5dayforecastdayday5%</span></b>
<br /><span style="text-transform: capitalize">%5dayforecastday5%</span></p>
<p><b><span style="text-transform: uppercase">%5dayforecastdayday6%</span></b>
<br /><span style="text-transform: capitalize">%5dayforecastday6%</span></p>
<p><b><span style="text-transform: uppercase">%5dayforecastdayday7%</span></b>
<br /><span style="text-transform: capitalize">%5dayforecastday7%</span></p>
<p>NWS Forecast: %5dayforecasttimestamp%</p>
with
<?php
$doIncludeNWS = true;
include("advforecast2.php");
?>
Then change the page type of the upload of wxlocal2.html from wx2.html to wx2.php -- you can do that with the Control Panel, Internet File Creation & Uploads, Setup Page#2 TAB,
File #23 wxlocal2.html
Press Set, then press Show File Upload times to reveal the FTP Settings area at the top.
Change wx2.html to wx2.php
Turn 'Use these settings' to ON
Press OK to save the changes
With luck, you should have a wx2.php page on your site with current gizmo conditions, AND a icons/text forecast from the NWS showing.
Don't forget to change the links section in all your pages to reflect that the forecast is now on wx2.php instead of wx2.html
Best regards,
Ken
Doug
[/quote]