Empty Forecast on my site

I am useing the Carterlake templates and for some strange reason every now and then something happens and my 5 day forecast don’t get uploaded. when I look for the txt file on the HD it is even empty! If I force it to update then it will.

This is the server I am useing to get my 5 day forcast from tgftp.nws.noaa.gov Is that the right one?

Thanks

Anthony

Yes, that is the correct server. I see the same thing from time to time and have found it’s a problem with the NOAA server when it happens. WD can’t download an updated forecast.

So I am just going to have to deal with it. sighs ok. Thanks

you could always use the “Advancedforecast2.php” script…in replacement of the original NWS Forecast text.

To see what it looks like just go to my forecast page here:
http://www.gateway2capecod.com/wx2.php

it also adds the “immediate” (2 icon with text) forecast to my home page, located near bottom of my home page here:

once you learn how to set these up…it is easy. a lot of how to do this is located in these forums.

to start off the first 2 thing’s you need to download is the actual “advancedforecast2.php” script and the icon set found near bottom of this page:

if you need any more help feel free to ask…Chris

I have the script at http://desotowiwx.com/forecast/forcast.php But being that it neads a php site it has been waiting in the wings to come out. Now might be the time to try to change my site all to php. thanks.

Hello FOX,

I can tell you exactly what you need to do to get it working, and it is very simple…

first off, you do not need to change all your site pages to php. you only need to change your forecast page to php, and then also for the immediate/2 icon advanced forecast shown on the home/index page…you will also need to make your home/index page a php page too.

but to do this…lets take care of your forecast page Only first, and leave the home page for after this is finished and complete.

the simple directions are as follows:

step1) go into your WD/WEBFILES Folder, and open up your wxlocal2 using notepad. and change/erase all of this:

National Weather Service Forecast

%5dayforecastdayday1%

%5dayforecastday1%

%5dayforecastdayday2%

%5dayforecastday2%

%5dayforecastdayday3%

%5dayforecastday3%

%5dayforecastdayday4%

%5dayforecastday4%

%5dayforecastdayday5%

%5dayforecastday5%

%5dayforecastdayday6%

%5dayforecastday6%

%5dayforecastdayday7%

%5dayforecastday7%

NWS Forecast: %5dayforecasttimestamp%

Then in it’s place add this:

<?php $doIncludeNWS = true; include("advforecast2.php"); ?>

after you have completed this comes the tricky part…

you need to go into WD/Control panels/website configurations/FTP & Connections/webfiles upload times/…then click on the tab that says 'custom file upload/creation times, on bottom right side of window.

once you get inside there…click on setup page #2 tab …and then locate the wxlocal2.html…then click on “SET” (for the wxlocal2.html)…inside here click on the" show file create time", that you already have and click on 'Save" …then the one you need to change is when you click on the “show file Upload time”,…leave the time as the same as the create time, but in the top box, instead of it creating a wx2.html…in the white box type in wx2.php, click on save next to it, and then save at bottom and then it is all set.

now safe to exit out of those windows

one other thing you will need to do is open with notepad all your wxlocal’s and edit the left side bar Link to point to the new URL. Instead of the old wx2.html, your new will be wx2.php, so that when anyone or yourself clicks on the link to get to the forecast page from one of your other pages, they get directed to the correct place, and not your old wx2.html forecast page.

once you have done all this and it is confirmed working correctly…I will give you the simple steps for adding the php immediate/2 icon php forecast to your home page.

reply back when mission is accomplished

Chris

Well I did it…I think http://www.desotowiwx.com/wx2.php it works but it is giveing me a error. I see there is a updated script I might be useing a old one I will try that one now.

Well I updated it and it is still giveing me the same error. Anyone have any idea what the error is about?

Looks to be working now.

  • Jim

Hello fox,

it is working here, as of 2:28pm saturday afternoon Boston EST TIme Zone

page is here:
http://www.desotowiwx.com/wx2.php

one thing you need to still do is open your wxlocal, and wxlocal3 through wxlocal 9 files, inside your WD/WEBFILES Folder…open each one, one at a time with notepad, and go down to the LEFT SIDE Bar info, with the actual links to your pages, and change the info for your forecast page to the new ending of wx2.php, in place of the old wx2.html…so that if you are say on your radar page and click on forecast page from there, it will bring you to the new php forecast page and not the old html forecast page. the old html page here is the one that is no longer needed and shows error of sorts.
http://www.desotowiwx.com/wx2.html

let me know when this has all been completed and then we can get your home page configured also, which show the immediated 2 icon with text php forecast.

inside each of the wxlocals that you need to edit with notepad, looks like inside of my wxlocal3…notice the link for my

  • <a href=“wx2.php” page:

      <div class="leftSideBar">
        <p class="sideBarTitle">Navigation</p>
        <ul>
          <li><a href="index.php" title="Home">Home</a></li>
          <li><a href="wx2.php" title="5-day Forecast">Forecast</a></li>
          <li><b>Regional Radar</b></li>
          <li><a href="wx14.html" title="Webcam">Live WebCam</a></li>
          <li><a href="wx4.html" title="Watches, Warnings, Advisories">Watches & Warnings</a></li>
          <li><a href="buoys.php" title="Buoy Data">NorthEast Buoy Data</a></li>
    
  • to make it simplier…what I am trying to tell you is that, when you are on your home page or any of your other pages besides the forecast page itself, and then click on the “forecast” on left side bar it is bringing you to your old wx2.html page, because you need to edit each wxlocal as I described above. to point to the new wx2.php page

    basically changing this:

  • <a href="wx2html"

    to this:

  • <a href="wx2.php"

    for every wxlocal within your wd/webfiles folder…under the left sidebar area within the file

  • I belive I got it now. If you see any I did not see it. #-o

    OK Fox…everything for that looks complete.

    we are now ready for the changes to your home page. go to your WD/WEBFILES Folder and open your wxlocal with notepad and do the following changes:

    now in your wxlocal…

    change this:

    FORECAST

    %5dayforecastdayday1%

    %5dayforecastday1%

    %5dayforecastdayday2%

    %5dayforecastday2%

    Click for extended

    Current Conditions

       %weathercond%\%Currentsolardescription%

    to this:

    FORECAST

    <?php $doPrintNWS = false; require("advforecast2.php"); ?>
    <?php print "$forecasticons[0] $forecasttemp[0]\n"; ?> <?php print "$forecasttext[0]\n"; ?>
      </td>
      <td style="text-align: center;">
    
    <?php print "$forecasticons[1] $forecasttemp[1]\n"; ?> <?php print "$forecasttext[1]\n"; ?>
      </td>
    </tr>
    

    Click for extended

    Current Conditions

       %weathercond%\%Currentsolardescription%

    also rememer to correct all your wxlocal pages again, like you just did for the new wx2.php page, to this page for the left side bar links. this one’s new link will go from the original wx.html or index.html to the new link of index.php

    and in the show create times and show upload times…within the upload times setup, be sure to rename it to index.php inside the white box of the upload screen, like you already did for wxlocal2 yesterday.

    let me know if you have any problems…chris

    well I did it and it is working…kind of…The text that is shown under the picturs run into the forcast next to it. Is there anyway that can be changed? Well anyway I am going to change the links to the main page to php now.

    Well I changed it so it will not show the forecast just the picture and it looks that like would work. Unless you know other ways.

    hello fox,

    we can straighten this problem out…just need to get your opinion on how it looks, before we make the final changes you will be happy with.so have a look at this test page, which will show a slightly different layout for you and let me know if you like this or want to change anything else. I am going do a few other examples later today.
    please note I uploaded this test page to my server, and it will be displayed with my color’s, as it is only a test page to see the layout. click on link below to view it and let me know what you think.

    http://www.gateway2capecod.com/test.html

    That looks great!

    Thanks for all the help you are giveing this fox :slight_smile:

    Ok Fox, To make the changes, to look like my test page you need to go into the wxlocal again and edit it…adding the & codes where I have them placed, but do it in your original wxlocal file:

    FORECAST

    Today Mostly Sunny Mostly SunnyTonight Chance Thunderstorms. Chance for Measurable Precipitation 30% Chance Tstms
    Hi 82°FLo 66°F
    Click for extended

    Current Conditions

       Dry\Sunny/Dry

    you also need to remove this line of code, just below that info that reads:

    if you would also like to to remove from your title header the words “with ajax”…while inside the wxlocal original file change this:

    <div id="header">
      <h1 class="headerTitle">
        <a href="" title="Browse to homepage">De Soto Valley Weather</a> with AJAX
      </h1>
    

    to this:

    <div id="header">
      <h1 class="headerTitle">
        <a href="index.php" title="Browse to homepage">De Soto Valley Weather</a></h1>
    

    I belive I got it.
    What do you think? http://www.desotowiwx.com/

    Hello Fox…I believe you have it…Looks Good!

    Enjoy…Chris

    It looks great but it looks like I made a few errors, If you go to [Invalid] Markup Validation of https://www.desotowiwx.com/ - W3C Markup Validator

    It says I have 4 errors. It looks like they are simple ones but I can’t seem to find them.